@elevasis/sdk 1.48.0 → 1.49.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.
- package/dist/cli.cjs +742 -231
- package/dist/index.d.ts +685 -47
- package/dist/index.js +274 -40
- package/dist/node/index.d.ts +108 -24
- package/dist/test-utils/index.d.ts +647 -34
- package/dist/test-utils/index.js +240 -38
- package/dist/worker/index.d.ts +663 -39
- package/dist/worker/index.js +115 -6
- package/package.json +4 -4
- package/reference/_navigation.md +4 -4
- package/reference/_reference-manifest.json +1 -1
- package/reference/core/index.mdx +6 -4
- package/reference/index.mdx +11 -5
- package/reference/packages/core/src/README.md +46 -44
- package/reference/packages/core/src/content/README.md +13 -12
- package/reference/rules/ui.md +1 -1
- package/reference/rules/vibe-intents.md +2 -2
- package/reference/rules/vibe.md +30 -10
- package/reference/scaffold/recipes/extend-content.md +82 -3
- package/reference/sdk/cli-management.mdx +184 -41
- package/reference/sdk/cli.mdx +103 -64
- package/reference/sdk/define-builders.mdx +1 -1
- package/reference/sdk/deployment/command-center.mdx +2 -2
- package/reference/sdk/deployment/index.mdx +1 -1
- package/reference/sdk/exports.mdx +4 -4
- package/reference/sdk/framework/agent.mdx +4 -3
- package/reference/sdk/framework/index.mdx +1 -1
- package/reference/sdk/framework/project-structure.mdx +34 -23
- package/reference/sdk/framework/tutorial-system.mdx +1 -1
- package/reference/sdk/getting-started.mdx +25 -52
- package/reference/sdk/index.mdx +3 -3
- package/reference/sdk/platform-tools/adapters-integration.mdx +1 -1
- package/reference/sdk/platform-tools/adapters-platform.mdx +1 -1
- package/reference/sdk/platform-tools/type-safety.mdx +1 -1
- package/reference/sdk/resources/patterns.mdx +10 -11
- package/reference/sdk/resources/types.mdx +15 -9
- package/reference/sdk/templates/data-enrichment.mdx +1 -1
- package/reference/sdk/templates/email-sender.mdx +1 -1
- package/reference/sdk/templates/index.mdx +47 -47
- package/reference/sdk/templates/lead-scorer.mdx +1 -1
- package/reference/sdk/templates/pdf-generator.mdx +42 -24
- package/reference/sdk/templates/recurring-job.mdx +20 -15
- package/reference/sdk/templates/text-classifier.mdx +1 -1
- package/reference/sdk/templates/web-scraper.mdx +9 -5
- package/reference/ui/exports.mdx +1 -1
- 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
|
-
|
|
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.)
|
|
@@ -3174,6 +3240,63 @@ type Database = {
|
|
|
3174
3240
|
}
|
|
3175
3241
|
];
|
|
3176
3242
|
};
|
|
3243
|
+
content_item_source_assets: {
|
|
3244
|
+
Row: {
|
|
3245
|
+
alt_text: string | null;
|
|
3246
|
+
content_item_id: string;
|
|
3247
|
+
created_at: string;
|
|
3248
|
+
crop: Json | null;
|
|
3249
|
+
derivative_crop: Json | null;
|
|
3250
|
+
derivative_path: string | null;
|
|
3251
|
+
derivative_rendered_at: string | null;
|
|
3252
|
+
id: string;
|
|
3253
|
+
organization_id: string;
|
|
3254
|
+
position: number;
|
|
3255
|
+
source_asset_id: string;
|
|
3256
|
+
};
|
|
3257
|
+
Insert: {
|
|
3258
|
+
alt_text?: string | null;
|
|
3259
|
+
content_item_id: string;
|
|
3260
|
+
created_at?: string;
|
|
3261
|
+
crop?: Json | null;
|
|
3262
|
+
derivative_crop?: Json | null;
|
|
3263
|
+
derivative_path?: string | null;
|
|
3264
|
+
derivative_rendered_at?: string | null;
|
|
3265
|
+
id?: string;
|
|
3266
|
+
organization_id: string;
|
|
3267
|
+
position: number;
|
|
3268
|
+
source_asset_id: string;
|
|
3269
|
+
};
|
|
3270
|
+
Update: {
|
|
3271
|
+
alt_text?: string | null;
|
|
3272
|
+
content_item_id?: string;
|
|
3273
|
+
created_at?: string;
|
|
3274
|
+
crop?: Json | null;
|
|
3275
|
+
derivative_crop?: Json | null;
|
|
3276
|
+
derivative_path?: string | null;
|
|
3277
|
+
derivative_rendered_at?: string | null;
|
|
3278
|
+
id?: string;
|
|
3279
|
+
organization_id?: string;
|
|
3280
|
+
position?: number;
|
|
3281
|
+
source_asset_id?: string;
|
|
3282
|
+
};
|
|
3283
|
+
Relationships: [
|
|
3284
|
+
{
|
|
3285
|
+
foreignKeyName: "content_item_source_assets_asset_fkey";
|
|
3286
|
+
columns: ["source_asset_id", "organization_id"];
|
|
3287
|
+
isOneToOne: false;
|
|
3288
|
+
referencedRelation: "content_source_assets";
|
|
3289
|
+
referencedColumns: ["id", "organization_id"];
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
foreignKeyName: "content_item_source_assets_item_fkey";
|
|
3293
|
+
columns: ["content_item_id", "organization_id"];
|
|
3294
|
+
isOneToOne: false;
|
|
3295
|
+
referencedRelation: "content_items";
|
|
3296
|
+
referencedColumns: ["id", "organization_id"];
|
|
3297
|
+
}
|
|
3298
|
+
];
|
|
3299
|
+
};
|
|
3177
3300
|
content_items: {
|
|
3178
3301
|
Row: {
|
|
3179
3302
|
body: string | null;
|
|
@@ -4929,6 +5052,25 @@ type Database = {
|
|
|
4929
5052
|
};
|
|
4930
5053
|
Returns: Json;
|
|
4931
5054
|
};
|
|
5055
|
+
activate_deployment_atomic: {
|
|
5056
|
+
Args: {
|
|
5057
|
+
p_deployment_id: string;
|
|
5058
|
+
p_organization_id: string;
|
|
5059
|
+
};
|
|
5060
|
+
Returns: {
|
|
5061
|
+
created_at: string;
|
|
5062
|
+
deployment_version: string | null;
|
|
5063
|
+
error_message: string | null;
|
|
5064
|
+
id: string;
|
|
5065
|
+
organization_id: string;
|
|
5066
|
+
pid: number | null;
|
|
5067
|
+
port: number | null;
|
|
5068
|
+
sdk_version: string;
|
|
5069
|
+
status: string;
|
|
5070
|
+
tarball_path: string | null;
|
|
5071
|
+
updated_at: string;
|
|
5072
|
+
};
|
|
5073
|
+
};
|
|
4932
5074
|
append_deal_activity: {
|
|
4933
5075
|
Args: {
|
|
4934
5076
|
p_activity: Json;
|
|
@@ -7103,7 +7245,9 @@ declare const OntologyObjectTypeSchema: z.ZodObject<{
|
|
|
7103
7245
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7104
7246
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7105
7247
|
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7106
|
-
|
|
7248
|
+
rowSchema: z.ZodOptional<z.ZodString>;
|
|
7249
|
+
stateCatalogId: z.ZodOptional<z.ZodString>;
|
|
7250
|
+
}, z.core.$strict>;
|
|
7107
7251
|
declare const OntologyLinkTypeSchema: z.ZodObject<{
|
|
7108
7252
|
id: z.ZodString;
|
|
7109
7253
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7114,7 +7258,7 @@ declare const OntologyLinkTypeSchema: z.ZodObject<{
|
|
|
7114
7258
|
to: z.ZodString;
|
|
7115
7259
|
cardinality: z.ZodOptional<z.ZodString>;
|
|
7116
7260
|
via: z.ZodOptional<z.ZodString>;
|
|
7117
|
-
}, z.core.$
|
|
7261
|
+
}, z.core.$strict>;
|
|
7118
7262
|
declare const OntologyActionTypeSchema: z.ZodObject<{
|
|
7119
7263
|
id: z.ZodString;
|
|
7120
7264
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7124,7 +7268,11 @@ declare const OntologyActionTypeSchema: z.ZodObject<{
|
|
|
7124
7268
|
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7125
7269
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7126
7270
|
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
7127
|
-
|
|
7271
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
7272
|
+
invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
7273
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
7274
|
+
legacyActionId: z.ZodOptional<z.ZodString>;
|
|
7275
|
+
}, z.core.$strict>;
|
|
7128
7276
|
declare const OntologyCatalogTypeSchema: z.ZodObject<{
|
|
7129
7277
|
id: z.ZodString;
|
|
7130
7278
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7134,7 +7282,10 @@ declare const OntologyCatalogTypeSchema: z.ZodObject<{
|
|
|
7134
7282
|
kind: z.ZodOptional<z.ZodString>;
|
|
7135
7283
|
appliesTo: z.ZodOptional<z.ZodString>;
|
|
7136
7284
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7137
|
-
|
|
7285
|
+
legacyCatalogKey: z.ZodOptional<z.ZodString>;
|
|
7286
|
+
legacyPipelineKey: z.ZodOptional<z.ZodString>;
|
|
7287
|
+
legacyEntityKey: z.ZodOptional<z.ZodString>;
|
|
7288
|
+
}, z.core.$strict>;
|
|
7138
7289
|
declare const OntologyEventTypeSchema: z.ZodObject<{
|
|
7139
7290
|
id: z.ZodString;
|
|
7140
7291
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7142,7 +7293,7 @@ declare const OntologyEventTypeSchema: z.ZodObject<{
|
|
|
7142
7293
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7143
7294
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7144
7295
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7145
|
-
}, z.core.$
|
|
7296
|
+
}, z.core.$strict>;
|
|
7146
7297
|
declare const OntologyInterfaceTypeSchema: z.ZodObject<{
|
|
7147
7298
|
id: z.ZodString;
|
|
7148
7299
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7150,7 +7301,7 @@ declare const OntologyInterfaceTypeSchema: z.ZodObject<{
|
|
|
7150
7301
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7151
7302
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7152
7303
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7153
|
-
}, z.core.$
|
|
7304
|
+
}, z.core.$strict>;
|
|
7154
7305
|
declare const OntologyValueTypeSchema: z.ZodObject<{
|
|
7155
7306
|
id: z.ZodString;
|
|
7156
7307
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7158,7 +7309,7 @@ declare const OntologyValueTypeSchema: z.ZodObject<{
|
|
|
7158
7309
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7159
7310
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7160
7311
|
primitive: z.ZodOptional<z.ZodString>;
|
|
7161
|
-
}, z.core.$
|
|
7312
|
+
}, z.core.$strict>;
|
|
7162
7313
|
declare const OntologySharedPropertySchema: z.ZodObject<{
|
|
7163
7314
|
id: z.ZodString;
|
|
7164
7315
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7168,7 +7319,7 @@ declare const OntologySharedPropertySchema: z.ZodObject<{
|
|
|
7168
7319
|
valueType: z.ZodOptional<z.ZodString>;
|
|
7169
7320
|
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
7170
7321
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
7171
|
-
}, z.core.$
|
|
7322
|
+
}, z.core.$strict>;
|
|
7172
7323
|
declare const OntologyGroupSchema: z.ZodObject<{
|
|
7173
7324
|
id: z.ZodString;
|
|
7174
7325
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7176,7 +7327,7 @@ declare const OntologyGroupSchema: z.ZodObject<{
|
|
|
7176
7327
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7177
7328
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7178
7329
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7179
|
-
}, z.core.$
|
|
7330
|
+
}, z.core.$strict>;
|
|
7180
7331
|
declare const OntologyEndpointTypeSchema: z.ZodObject<{
|
|
7181
7332
|
id: z.ZodString;
|
|
7182
7333
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7184,7 +7335,7 @@ declare const OntologyEndpointTypeSchema: z.ZodObject<{
|
|
|
7184
7335
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7185
7336
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7186
7337
|
route: z.ZodOptional<z.ZodString>;
|
|
7187
|
-
}, z.core.$
|
|
7338
|
+
}, z.core.$strict>;
|
|
7188
7339
|
declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
7189
7340
|
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7190
7341
|
id: z.ZodString;
|
|
@@ -7194,7 +7345,9 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7194
7345
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7195
7346
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7196
7347
|
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7197
|
-
|
|
7348
|
+
rowSchema: z.ZodOptional<z.ZodString>;
|
|
7349
|
+
stateCatalogId: z.ZodOptional<z.ZodString>;
|
|
7350
|
+
}, z.core.$strict>>>>;
|
|
7198
7351
|
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7199
7352
|
id: z.ZodString;
|
|
7200
7353
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7205,7 +7358,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7205
7358
|
to: z.ZodString;
|
|
7206
7359
|
cardinality: z.ZodOptional<z.ZodString>;
|
|
7207
7360
|
via: z.ZodOptional<z.ZodString>;
|
|
7208
|
-
}, z.core.$
|
|
7361
|
+
}, z.core.$strict>>>>;
|
|
7209
7362
|
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7210
7363
|
id: z.ZodString;
|
|
7211
7364
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7215,7 +7368,11 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7215
7368
|
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7216
7369
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7217
7370
|
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
7218
|
-
|
|
7371
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
7372
|
+
invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
7373
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
7374
|
+
legacyActionId: z.ZodOptional<z.ZodString>;
|
|
7375
|
+
}, z.core.$strict>>>>;
|
|
7219
7376
|
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7220
7377
|
id: z.ZodString;
|
|
7221
7378
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7225,7 +7382,10 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7225
7382
|
kind: z.ZodOptional<z.ZodString>;
|
|
7226
7383
|
appliesTo: z.ZodOptional<z.ZodString>;
|
|
7227
7384
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7228
|
-
|
|
7385
|
+
legacyCatalogKey: z.ZodOptional<z.ZodString>;
|
|
7386
|
+
legacyPipelineKey: z.ZodOptional<z.ZodString>;
|
|
7387
|
+
legacyEntityKey: z.ZodOptional<z.ZodString>;
|
|
7388
|
+
}, z.core.$strict>>>>;
|
|
7229
7389
|
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7230
7390
|
id: z.ZodString;
|
|
7231
7391
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7233,7 +7393,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7233
7393
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7234
7394
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7235
7395
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7236
|
-
}, z.core.$
|
|
7396
|
+
}, z.core.$strict>>>>;
|
|
7237
7397
|
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7238
7398
|
id: z.ZodString;
|
|
7239
7399
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7241,7 +7401,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7241
7401
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7242
7402
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7243
7403
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7244
|
-
}, z.core.$
|
|
7404
|
+
}, z.core.$strict>>>>;
|
|
7245
7405
|
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7246
7406
|
id: z.ZodString;
|
|
7247
7407
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7249,7 +7409,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7249
7409
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7250
7410
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7251
7411
|
primitive: z.ZodOptional<z.ZodString>;
|
|
7252
|
-
}, z.core.$
|
|
7412
|
+
}, z.core.$strict>>>>;
|
|
7253
7413
|
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7254
7414
|
id: z.ZodString;
|
|
7255
7415
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7259,7 +7419,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7259
7419
|
valueType: z.ZodOptional<z.ZodString>;
|
|
7260
7420
|
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
7261
7421
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
7262
|
-
}, z.core.$
|
|
7422
|
+
}, z.core.$strict>>>>;
|
|
7263
7423
|
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7264
7424
|
id: z.ZodString;
|
|
7265
7425
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7267,7 +7427,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7267
7427
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7268
7428
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7269
7429
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7270
|
-
}, z.core.$
|
|
7430
|
+
}, z.core.$strict>>>>;
|
|
7271
7431
|
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7272
7432
|
id: z.ZodString;
|
|
7273
7433
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -7275,7 +7435,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
7275
7435
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
7276
7436
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7277
7437
|
route: z.ZodOptional<z.ZodString>;
|
|
7278
|
-
}, z.core.$
|
|
7438
|
+
}, z.core.$strict>>>>;
|
|
7279
7439
|
}, z.core.$strict>>;
|
|
7280
7440
|
type OntologyObjectType = z.infer<typeof OntologyObjectTypeSchema>;
|
|
7281
7441
|
type OntologyLinkType = z.infer<typeof OntologyLinkTypeSchema>;
|
|
@@ -8566,7 +8726,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8566
8726
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8567
8727
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8568
8728
|
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8569
|
-
|
|
8729
|
+
rowSchema: z.ZodOptional<z.ZodString>;
|
|
8730
|
+
stateCatalogId: z.ZodOptional<z.ZodString>;
|
|
8731
|
+
}, z.core.$strict>>>>;
|
|
8570
8732
|
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8571
8733
|
id: z.ZodString;
|
|
8572
8734
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8577,7 +8739,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8577
8739
|
to: z.ZodString;
|
|
8578
8740
|
cardinality: z.ZodOptional<z.ZodString>;
|
|
8579
8741
|
via: z.ZodOptional<z.ZodString>;
|
|
8580
|
-
}, z.core.$
|
|
8742
|
+
}, z.core.$strict>>>>;
|
|
8581
8743
|
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8582
8744
|
id: z.ZodString;
|
|
8583
8745
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8587,7 +8749,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8587
8749
|
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
8588
8750
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8589
8751
|
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
8590
|
-
|
|
8752
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
8753
|
+
invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
8754
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
8755
|
+
legacyActionId: z.ZodOptional<z.ZodString>;
|
|
8756
|
+
}, z.core.$strict>>>>;
|
|
8591
8757
|
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8592
8758
|
id: z.ZodString;
|
|
8593
8759
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8597,7 +8763,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8597
8763
|
kind: z.ZodOptional<z.ZodString>;
|
|
8598
8764
|
appliesTo: z.ZodOptional<z.ZodString>;
|
|
8599
8765
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8600
|
-
|
|
8766
|
+
legacyCatalogKey: z.ZodOptional<z.ZodString>;
|
|
8767
|
+
legacyPipelineKey: z.ZodOptional<z.ZodString>;
|
|
8768
|
+
legacyEntityKey: z.ZodOptional<z.ZodString>;
|
|
8769
|
+
}, z.core.$strict>>>>;
|
|
8601
8770
|
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8602
8771
|
id: z.ZodString;
|
|
8603
8772
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8605,7 +8774,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8605
8774
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
8606
8775
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8607
8776
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8608
|
-
}, z.core.$
|
|
8777
|
+
}, z.core.$strict>>>>;
|
|
8609
8778
|
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8610
8779
|
id: z.ZodString;
|
|
8611
8780
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8613,7 +8782,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8613
8782
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
8614
8783
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8615
8784
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8616
|
-
}, z.core.$
|
|
8785
|
+
}, z.core.$strict>>>>;
|
|
8617
8786
|
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8618
8787
|
id: z.ZodString;
|
|
8619
8788
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8621,7 +8790,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8621
8790
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
8622
8791
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8623
8792
|
primitive: z.ZodOptional<z.ZodString>;
|
|
8624
|
-
}, z.core.$
|
|
8793
|
+
}, z.core.$strict>>>>;
|
|
8625
8794
|
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8626
8795
|
id: z.ZodString;
|
|
8627
8796
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8631,7 +8800,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8631
8800
|
valueType: z.ZodOptional<z.ZodString>;
|
|
8632
8801
|
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
8633
8802
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
8634
|
-
}, z.core.$
|
|
8803
|
+
}, z.core.$strict>>>>;
|
|
8635
8804
|
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8636
8805
|
id: z.ZodString;
|
|
8637
8806
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8639,7 +8808,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8639
8808
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
8640
8809
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8641
8810
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
8642
|
-
}, z.core.$
|
|
8811
|
+
}, z.core.$strict>>>>;
|
|
8643
8812
|
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8644
8813
|
id: z.ZodString;
|
|
8645
8814
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8647,7 +8816,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
8647
8816
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
8648
8817
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8649
8818
|
route: z.ZodOptional<z.ZodString>;
|
|
8650
|
-
}, z.core.$
|
|
8819
|
+
}, z.core.$strict>>>>;
|
|
8651
8820
|
}, z.core.$strict>>>;
|
|
8652
8821
|
resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8653
8822
|
id: z.ZodString;
|
|
@@ -9712,6 +9881,166 @@ interface CreateFolderResult {
|
|
|
9712
9881
|
path_display: string;
|
|
9713
9882
|
} | null;
|
|
9714
9883
|
}
|
|
9884
|
+
/**
|
|
9885
|
+
* List folder parameters
|
|
9886
|
+
*
|
|
9887
|
+
* Pass `cursor` (from a previous result) to fetch only what changed since
|
|
9888
|
+
* that cursor -- Dropbox's incremental-sync mechanism, not an optional
|
|
9889
|
+
* convenience.
|
|
9890
|
+
*/
|
|
9891
|
+
interface ListFolderParams {
|
|
9892
|
+
path?: string;
|
|
9893
|
+
recursive?: boolean;
|
|
9894
|
+
cursor?: string;
|
|
9895
|
+
}
|
|
9896
|
+
/**
|
|
9897
|
+
* A single file or folder entry returned by listFolder
|
|
9898
|
+
*/
|
|
9899
|
+
interface DropboxListFolderEntry {
|
|
9900
|
+
'.tag': 'file' | 'folder' | 'deleted';
|
|
9901
|
+
id: string;
|
|
9902
|
+
name: string;
|
|
9903
|
+
path_lower?: string;
|
|
9904
|
+
path_display?: string;
|
|
9905
|
+
size?: number;
|
|
9906
|
+
content_hash?: string;
|
|
9907
|
+
}
|
|
9908
|
+
/**
|
|
9909
|
+
* List folder result
|
|
9910
|
+
*/
|
|
9911
|
+
interface ListFolderResult {
|
|
9912
|
+
entries: DropboxListFolderEntry[];
|
|
9913
|
+
cursor: string;
|
|
9914
|
+
has_more: boolean;
|
|
9915
|
+
}
|
|
9916
|
+
/**
|
|
9917
|
+
* Get metadata parameters
|
|
9918
|
+
*/
|
|
9919
|
+
interface GetMetadataParams {
|
|
9920
|
+
id: string;
|
|
9921
|
+
}
|
|
9922
|
+
/**
|
|
9923
|
+
* Photo/video-specific metadata
|
|
9924
|
+
*/
|
|
9925
|
+
interface DropboxMediaMetadata {
|
|
9926
|
+
'.tag': 'photo' | 'video';
|
|
9927
|
+
dimensions?: {
|
|
9928
|
+
height: number;
|
|
9929
|
+
width: number;
|
|
9930
|
+
};
|
|
9931
|
+
time_taken?: string;
|
|
9932
|
+
}
|
|
9933
|
+
/**
|
|
9934
|
+
* Wrapper around media metadata, matching Dropbox's tagged-union response shape
|
|
9935
|
+
*/
|
|
9936
|
+
interface DropboxMediaInfo {
|
|
9937
|
+
'.tag': 'metadata' | 'absent';
|
|
9938
|
+
metadata?: DropboxMediaMetadata;
|
|
9939
|
+
}
|
|
9940
|
+
/**
|
|
9941
|
+
* Get metadata result
|
|
9942
|
+
*/
|
|
9943
|
+
interface GetMetadataResult {
|
|
9944
|
+
id: string;
|
|
9945
|
+
name: string;
|
|
9946
|
+
path_lower?: string;
|
|
9947
|
+
path_display?: string;
|
|
9948
|
+
size?: number;
|
|
9949
|
+
content_hash?: string;
|
|
9950
|
+
media_info?: DropboxMediaInfo;
|
|
9951
|
+
}
|
|
9952
|
+
/**
|
|
9953
|
+
* Get temporary link parameters
|
|
9954
|
+
*/
|
|
9955
|
+
interface GetTemporaryLinkParams {
|
|
9956
|
+
id: string;
|
|
9957
|
+
}
|
|
9958
|
+
/**
|
|
9959
|
+
* Get temporary link result (valid four hours, never persist)
|
|
9960
|
+
*/
|
|
9961
|
+
interface GetTemporaryLinkResult {
|
|
9962
|
+
link: string;
|
|
9963
|
+
metadata: {
|
|
9964
|
+
id: string;
|
|
9965
|
+
name: string;
|
|
9966
|
+
path_lower?: string;
|
|
9967
|
+
path_display?: string;
|
|
9968
|
+
};
|
|
9969
|
+
}
|
|
9970
|
+
/**
|
|
9971
|
+
* Create shared link parameters
|
|
9972
|
+
*/
|
|
9973
|
+
interface CreateSharedLinkParams {
|
|
9974
|
+
id: string;
|
|
9975
|
+
}
|
|
9976
|
+
/**
|
|
9977
|
+
* Create shared link result (url is always the raw, bytes-inline form)
|
|
9978
|
+
*/
|
|
9979
|
+
interface CreateSharedLinkResult {
|
|
9980
|
+
url: string;
|
|
9981
|
+
id: string;
|
|
9982
|
+
name: string;
|
|
9983
|
+
}
|
|
9984
|
+
/**
|
|
9985
|
+
* Download parameters
|
|
9986
|
+
*/
|
|
9987
|
+
interface DownloadParams {
|
|
9988
|
+
id: string;
|
|
9989
|
+
}
|
|
9990
|
+
/**
|
|
9991
|
+
* Download result (Uint8Array for browser safety)
|
|
9992
|
+
*/
|
|
9993
|
+
interface DownloadResult {
|
|
9994
|
+
content: Uint8Array;
|
|
9995
|
+
contentType: string;
|
|
9996
|
+
name: string;
|
|
9997
|
+
}
|
|
9998
|
+
type DropboxThumbnailFormat = 'jpeg' | 'png';
|
|
9999
|
+
type DropboxThumbnailSize = 'w32h32' | 'w64h64' | 'w128h128' | 'w256h256' | 'w480h320' | 'w640h480' | 'w960h640' | 'w1024h768' | 'w2048h1536';
|
|
10000
|
+
/**
|
|
10001
|
+
* Get thumbnail parameters
|
|
10002
|
+
*/
|
|
10003
|
+
interface GetThumbnailParams {
|
|
10004
|
+
id: string;
|
|
10005
|
+
format?: DropboxThumbnailFormat;
|
|
10006
|
+
size?: DropboxThumbnailSize;
|
|
10007
|
+
}
|
|
10008
|
+
/**
|
|
10009
|
+
* Get thumbnail result (Uint8Array for browser safety)
|
|
10010
|
+
*
|
|
10011
|
+
* `available: false` is a normal result, not an error -- Dropbox does not
|
|
10012
|
+
* convert every file type (e.g. HEIC) or files over 20MB.
|
|
10013
|
+
*/
|
|
10014
|
+
interface GetThumbnailResult {
|
|
10015
|
+
available: boolean;
|
|
10016
|
+
content?: Uint8Array;
|
|
10017
|
+
contentType?: string;
|
|
10018
|
+
}
|
|
10019
|
+
/**
|
|
10020
|
+
* Get thumbnail batch parameters
|
|
10021
|
+
*
|
|
10022
|
+
* Dropbox caps this at 25 ids per request.
|
|
10023
|
+
*/
|
|
10024
|
+
interface GetThumbnailBatchParams {
|
|
10025
|
+
ids: string[];
|
|
10026
|
+
format?: DropboxThumbnailFormat;
|
|
10027
|
+
size?: DropboxThumbnailSize;
|
|
10028
|
+
}
|
|
10029
|
+
/**
|
|
10030
|
+
* A single entry in a batch thumbnail result (Uint8Array for browser safety)
|
|
10031
|
+
*/
|
|
10032
|
+
interface ThumbnailBatchEntry {
|
|
10033
|
+
id: string;
|
|
10034
|
+
available: boolean;
|
|
10035
|
+
content?: Uint8Array;
|
|
10036
|
+
contentType?: string;
|
|
10037
|
+
}
|
|
10038
|
+
/**
|
|
10039
|
+
* Get thumbnail batch result
|
|
10040
|
+
*/
|
|
10041
|
+
interface GetThumbnailBatchResult {
|
|
10042
|
+
entries: ThumbnailBatchEntry[];
|
|
10043
|
+
}
|
|
9715
10044
|
|
|
9716
10045
|
/**
|
|
9717
10046
|
* Shared Gmail param/result types (browser-safe)
|
|
@@ -11213,6 +11542,78 @@ declare const ContentDistributionStatusSchema: z.ZodString;
|
|
|
11213
11542
|
* schema validates JSON-object shape and size only, not field membership.
|
|
11214
11543
|
*/
|
|
11215
11544
|
declare const ContentPayloadEnvelopeSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11545
|
+
/** Request-side crop: `.strict()`, the same mass-assignment guard every request schema in this file uses. */
|
|
11546
|
+
declare const ContentAssetCropInputSchema: z.ZodObject<{
|
|
11547
|
+
x: z.ZodNumber;
|
|
11548
|
+
y: z.ZodNumber;
|
|
11549
|
+
width: z.ZodNumber;
|
|
11550
|
+
height: z.ZodNumber;
|
|
11551
|
+
}, z.core.$strict>;
|
|
11552
|
+
declare const ContentItemSourceAssetResponseSchema: z.ZodObject<{
|
|
11553
|
+
id: z.ZodString;
|
|
11554
|
+
organizationId: z.ZodString;
|
|
11555
|
+
contentItemId: z.ZodString;
|
|
11556
|
+
sourceAssetId: z.ZodString;
|
|
11557
|
+
position: z.ZodNumber;
|
|
11558
|
+
crop: z.ZodNullable<z.ZodObject<{
|
|
11559
|
+
x: z.ZodNumber;
|
|
11560
|
+
y: z.ZodNumber;
|
|
11561
|
+
width: z.ZodNumber;
|
|
11562
|
+
height: z.ZodNumber;
|
|
11563
|
+
}, z.core.$strip>>;
|
|
11564
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
11565
|
+
derivativePath: z.ZodNullable<z.ZodString>;
|
|
11566
|
+
derivativeCrop: z.ZodNullable<z.ZodObject<{
|
|
11567
|
+
x: z.ZodNumber;
|
|
11568
|
+
y: z.ZodNumber;
|
|
11569
|
+
width: z.ZodNumber;
|
|
11570
|
+
height: z.ZodNumber;
|
|
11571
|
+
}, z.core.$strip>>;
|
|
11572
|
+
derivativeRenderedAt: z.ZodNullable<z.ZodString>;
|
|
11573
|
+
createdAt: z.ZodString;
|
|
11574
|
+
}, z.core.$strip>;
|
|
11575
|
+
declare const ContentItemSourceAssetListResponseSchema: z.ZodObject<{
|
|
11576
|
+
data: z.ZodArray<z.ZodObject<{
|
|
11577
|
+
id: z.ZodString;
|
|
11578
|
+
organizationId: z.ZodString;
|
|
11579
|
+
contentItemId: z.ZodString;
|
|
11580
|
+
sourceAssetId: z.ZodString;
|
|
11581
|
+
position: z.ZodNumber;
|
|
11582
|
+
crop: z.ZodNullable<z.ZodObject<{
|
|
11583
|
+
x: z.ZodNumber;
|
|
11584
|
+
y: z.ZodNumber;
|
|
11585
|
+
width: z.ZodNumber;
|
|
11586
|
+
height: z.ZodNumber;
|
|
11587
|
+
}, z.core.$strip>>;
|
|
11588
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
11589
|
+
derivativePath: z.ZodNullable<z.ZodString>;
|
|
11590
|
+
derivativeCrop: z.ZodNullable<z.ZodObject<{
|
|
11591
|
+
x: z.ZodNumber;
|
|
11592
|
+
y: z.ZodNumber;
|
|
11593
|
+
width: z.ZodNumber;
|
|
11594
|
+
height: z.ZodNumber;
|
|
11595
|
+
}, z.core.$strip>>;
|
|
11596
|
+
derivativeRenderedAt: z.ZodNullable<z.ZodString>;
|
|
11597
|
+
createdAt: z.ZodString;
|
|
11598
|
+
}, z.core.$strip>>;
|
|
11599
|
+
}, z.core.$strip>;
|
|
11600
|
+
/**
|
|
11601
|
+
* One membership as a caller supplies it. Two callers share it:
|
|
11602
|
+
* `CreateContentItemRequestSchema.sourceAssets` (the ordered set a carousel is
|
|
11603
|
+
* created with, in one transaction) and the body of the `addItemSourceAsset`
|
|
11604
|
+
* write, whose `itemId` arrives as a path param rather than in the body.
|
|
11605
|
+
*/
|
|
11606
|
+
declare const ContentItemSourceAssetInputSchema: z.ZodObject<{
|
|
11607
|
+
sourceAssetId: z.ZodString;
|
|
11608
|
+
position: z.ZodNumber;
|
|
11609
|
+
crop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11610
|
+
x: z.ZodNumber;
|
|
11611
|
+
y: z.ZodNumber;
|
|
11612
|
+
width: z.ZodNumber;
|
|
11613
|
+
height: z.ZodNumber;
|
|
11614
|
+
}, z.core.$strict>>>;
|
|
11615
|
+
altText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11616
|
+
}, z.core.$strict>;
|
|
11216
11617
|
declare const ContentItemResponseSchema: z.ZodObject<{
|
|
11217
11618
|
id: z.ZodString;
|
|
11218
11619
|
organizationId: z.ZodString;
|
|
@@ -11224,6 +11625,29 @@ declare const ContentItemResponseSchema: z.ZodObject<{
|
|
|
11224
11625
|
pipelineId: z.ZodNullable<z.ZodString>;
|
|
11225
11626
|
clientId: z.ZodNullable<z.ZodString>;
|
|
11226
11627
|
sourceAssetId: z.ZodNullable<z.ZodString>;
|
|
11628
|
+
sourceAssets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11629
|
+
id: z.ZodString;
|
|
11630
|
+
organizationId: z.ZodString;
|
|
11631
|
+
contentItemId: z.ZodString;
|
|
11632
|
+
sourceAssetId: z.ZodString;
|
|
11633
|
+
position: z.ZodNumber;
|
|
11634
|
+
crop: z.ZodNullable<z.ZodObject<{
|
|
11635
|
+
x: z.ZodNumber;
|
|
11636
|
+
y: z.ZodNumber;
|
|
11637
|
+
width: z.ZodNumber;
|
|
11638
|
+
height: z.ZodNumber;
|
|
11639
|
+
}, z.core.$strip>>;
|
|
11640
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
11641
|
+
derivativePath: z.ZodNullable<z.ZodString>;
|
|
11642
|
+
derivativeCrop: z.ZodNullable<z.ZodObject<{
|
|
11643
|
+
x: z.ZodNumber;
|
|
11644
|
+
y: z.ZodNumber;
|
|
11645
|
+
width: z.ZodNumber;
|
|
11646
|
+
height: z.ZodNumber;
|
|
11647
|
+
}, z.core.$strip>>;
|
|
11648
|
+
derivativeRenderedAt: z.ZodNullable<z.ZodString>;
|
|
11649
|
+
createdAt: z.ZodString;
|
|
11650
|
+
}, z.core.$strip>>>;
|
|
11227
11651
|
processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11228
11652
|
status: z.ZodEnum<{
|
|
11229
11653
|
error: "error";
|
|
@@ -11258,6 +11682,29 @@ declare const ContentItemListResponseSchema: z.ZodObject<{
|
|
|
11258
11682
|
pipelineId: z.ZodNullable<z.ZodString>;
|
|
11259
11683
|
clientId: z.ZodNullable<z.ZodString>;
|
|
11260
11684
|
sourceAssetId: z.ZodNullable<z.ZodString>;
|
|
11685
|
+
sourceAssets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11686
|
+
id: z.ZodString;
|
|
11687
|
+
organizationId: z.ZodString;
|
|
11688
|
+
contentItemId: z.ZodString;
|
|
11689
|
+
sourceAssetId: z.ZodString;
|
|
11690
|
+
position: z.ZodNumber;
|
|
11691
|
+
crop: z.ZodNullable<z.ZodObject<{
|
|
11692
|
+
x: z.ZodNumber;
|
|
11693
|
+
y: z.ZodNumber;
|
|
11694
|
+
width: z.ZodNumber;
|
|
11695
|
+
height: z.ZodNumber;
|
|
11696
|
+
}, z.core.$strip>>;
|
|
11697
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
11698
|
+
derivativePath: z.ZodNullable<z.ZodString>;
|
|
11699
|
+
derivativeCrop: z.ZodNullable<z.ZodObject<{
|
|
11700
|
+
x: z.ZodNumber;
|
|
11701
|
+
y: z.ZodNumber;
|
|
11702
|
+
width: z.ZodNumber;
|
|
11703
|
+
height: z.ZodNumber;
|
|
11704
|
+
}, z.core.$strip>>;
|
|
11705
|
+
derivativeRenderedAt: z.ZodNullable<z.ZodString>;
|
|
11706
|
+
createdAt: z.ZodString;
|
|
11707
|
+
}, z.core.$strip>>>;
|
|
11261
11708
|
processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11262
11709
|
status: z.ZodEnum<{
|
|
11263
11710
|
error: "error";
|
|
@@ -11348,6 +11795,31 @@ declare const ContentSourceAssetResponseSchema: z.ZodObject<{
|
|
|
11348
11795
|
createdAt: z.ZodString;
|
|
11349
11796
|
updatedAt: z.ZodString;
|
|
11350
11797
|
}, z.core.$strip>;
|
|
11798
|
+
/**
|
|
11799
|
+
* One entry in a distribution's `media_urls`.
|
|
11800
|
+
*
|
|
11801
|
+
* Two kinds genuinely coexist: an object in a Supabase storage bucket, and a
|
|
11802
|
+
* URL that is already fetchable. Both used to be stored as bare strings, so
|
|
11803
|
+
* every reader had to classify an entry by looking for a URI scheme — the same
|
|
11804
|
+
* guess, re-derived in each consumer, wrong the moment a storage key contains
|
|
11805
|
+
* a colon. The entry names its own kind instead.
|
|
11806
|
+
*
|
|
11807
|
+
* A `storage` entry carries its own `bucket` so a reader does not hardcode one;
|
|
11808
|
+
* the bucket is private, so the path is signed at read time rather than stored
|
|
11809
|
+
* as a URL that expires.
|
|
11810
|
+
*
|
|
11811
|
+
* This is deliberately NOT `z.union([z.string(), ...])`. Accepting both shapes
|
|
11812
|
+
* would relocate the heuristic rather than remove it, so existing rows are
|
|
11813
|
+
* migrated instead (`content-distribution-media-entries.sql`).
|
|
11814
|
+
*/
|
|
11815
|
+
declare const ContentMediaEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11816
|
+
kind: z.ZodLiteral<"storage">;
|
|
11817
|
+
bucket: z.ZodString;
|
|
11818
|
+
path: z.ZodString;
|
|
11819
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11820
|
+
kind: z.ZodLiteral<"url">;
|
|
11821
|
+
url: z.ZodString;
|
|
11822
|
+
}, z.core.$strict>], "kind">;
|
|
11351
11823
|
declare const ContentDistributionResponseSchema: z.ZodObject<{
|
|
11352
11824
|
id: z.ZodString;
|
|
11353
11825
|
organizationId: z.ZodString;
|
|
@@ -11358,7 +11830,14 @@ declare const ContentDistributionResponseSchema: z.ZodObject<{
|
|
|
11358
11830
|
adaptedBody: z.ZodNullable<z.ZodString>;
|
|
11359
11831
|
platformContent: z.ZodNullable<z.ZodUnknown>;
|
|
11360
11832
|
checklist: z.ZodNullable<z.ZodUnknown>;
|
|
11361
|
-
mediaUrls: z.ZodArray<z.
|
|
11833
|
+
mediaUrls: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11834
|
+
kind: z.ZodLiteral<"storage">;
|
|
11835
|
+
bucket: z.ZodString;
|
|
11836
|
+
path: z.ZodString;
|
|
11837
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11838
|
+
kind: z.ZodLiteral<"url">;
|
|
11839
|
+
url: z.ZodString;
|
|
11840
|
+
}, z.core.$strict>], "kind">>;
|
|
11362
11841
|
processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11363
11842
|
status: z.ZodEnum<{
|
|
11364
11843
|
error: "error";
|
|
@@ -11389,11 +11868,16 @@ type ContentDistributionPlatform = z.infer<typeof ContentDistributionPlatformSch
|
|
|
11389
11868
|
type ContentDistributionFormat = z.infer<typeof ContentDistributionFormatSchema>;
|
|
11390
11869
|
type ContentDistributionStatus = z.infer<typeof ContentDistributionStatusSchema>;
|
|
11391
11870
|
type ContentPayloadEnvelope = z.infer<typeof ContentPayloadEnvelopeSchema>;
|
|
11871
|
+
type ContentAssetCropInput = z.infer<typeof ContentAssetCropInputSchema>;
|
|
11872
|
+
type ContentItemSourceAssetResponse = z.infer<typeof ContentItemSourceAssetResponseSchema>;
|
|
11873
|
+
type ContentItemSourceAssetListResponse = z.infer<typeof ContentItemSourceAssetListResponseSchema>;
|
|
11874
|
+
type ContentItemSourceAssetInput = z.infer<typeof ContentItemSourceAssetInputSchema>;
|
|
11392
11875
|
type ContentItemResponse = z.infer<typeof ContentItemResponseSchema>;
|
|
11393
11876
|
type ContentItemListResponse = z.infer<typeof ContentItemListResponseSchema>;
|
|
11394
11877
|
type ContentItemAttemptResponse = z.infer<typeof ContentItemAttemptResponseSchema>;
|
|
11395
11878
|
type ContentItemAttemptListResponse = z.infer<typeof ContentItemAttemptListResponseSchema>;
|
|
11396
11879
|
type ContentSourceAssetResponse = z.infer<typeof ContentSourceAssetResponseSchema>;
|
|
11880
|
+
type ContentMediaEntry = z.infer<typeof ContentMediaEntrySchema>;
|
|
11397
11881
|
type ContentDistributionResponse = z.infer<typeof ContentDistributionResponseSchema>;
|
|
11398
11882
|
|
|
11399
11883
|
/**
|
|
@@ -11834,6 +12318,34 @@ type DropboxToolMap = {
|
|
|
11834
12318
|
params: CreateFolderParams;
|
|
11835
12319
|
result: CreateFolderResult;
|
|
11836
12320
|
};
|
|
12321
|
+
listFolder: {
|
|
12322
|
+
params: ListFolderParams;
|
|
12323
|
+
result: ListFolderResult;
|
|
12324
|
+
};
|
|
12325
|
+
getMetadata: {
|
|
12326
|
+
params: GetMetadataParams;
|
|
12327
|
+
result: GetMetadataResult;
|
|
12328
|
+
};
|
|
12329
|
+
getTemporaryLink: {
|
|
12330
|
+
params: GetTemporaryLinkParams;
|
|
12331
|
+
result: GetTemporaryLinkResult;
|
|
12332
|
+
};
|
|
12333
|
+
createSharedLink: {
|
|
12334
|
+
params: CreateSharedLinkParams;
|
|
12335
|
+
result: CreateSharedLinkResult;
|
|
12336
|
+
};
|
|
12337
|
+
download: {
|
|
12338
|
+
params: DownloadParams;
|
|
12339
|
+
result: DownloadResult;
|
|
12340
|
+
};
|
|
12341
|
+
getThumbnail: {
|
|
12342
|
+
params: GetThumbnailParams;
|
|
12343
|
+
result: GetThumbnailResult;
|
|
12344
|
+
};
|
|
12345
|
+
getThumbnailBatch: {
|
|
12346
|
+
params: GetThumbnailBatchParams;
|
|
12347
|
+
result: GetThumbnailBatchResult;
|
|
12348
|
+
};
|
|
11837
12349
|
};
|
|
11838
12350
|
type SignatureApiToolMap = {
|
|
11839
12351
|
createEnvelope: {
|
|
@@ -12371,7 +12883,15 @@ type ArtifactsToolMap = {
|
|
|
12371
12883
|
};
|
|
12372
12884
|
};
|
|
12373
12885
|
type ContentToolMap = {
|
|
12374
|
-
/**
|
|
12886
|
+
/**
|
|
12887
|
+
* Insert a new `content_items` row -- a producer's entry point for a new piece.
|
|
12888
|
+
*
|
|
12889
|
+
* `sourceAssets` is the ordered membership a carousel is created with, in
|
|
12890
|
+
* ONE transaction (Open Decision 11, 2026-08-17 -- hybrid). Index is not
|
|
12891
|
+
* position: each entry names its own `position`, and 0 is the cover. Every
|
|
12892
|
+
* later membership mutation is one of the four dedicated methods below --
|
|
12893
|
+
* `updateItem` never touches membership.
|
|
12894
|
+
*/
|
|
12375
12895
|
createItem: {
|
|
12376
12896
|
params: {
|
|
12377
12897
|
title: string;
|
|
@@ -12382,6 +12902,7 @@ type ContentToolMap = {
|
|
|
12382
12902
|
pipelineId?: ContentPipelineId | null;
|
|
12383
12903
|
clientId?: string | null;
|
|
12384
12904
|
sourceAssetId?: string | null;
|
|
12905
|
+
sourceAssets?: ContentItemSourceAssetInput[];
|
|
12385
12906
|
};
|
|
12386
12907
|
result: ContentItemResponse;
|
|
12387
12908
|
};
|
|
@@ -12407,6 +12928,13 @@ type ContentToolMap = {
|
|
|
12407
12928
|
/**
|
|
12408
12929
|
* Update an item's mutable fields as it advances through the pipeline.
|
|
12409
12930
|
* Does NOT accept a `processingState` field -- see Decision 4 above.
|
|
12931
|
+
*
|
|
12932
|
+
* STANDING CONVENTION -- Open Decision 11 (enforced by omission): there is no
|
|
12933
|
+
* `sourceAssets` field here and there must not be one. A wholesale-replace
|
|
12934
|
+
* array would force every partial item update to say something about the
|
|
12935
|
+
* asset list, and once omission means "leave alone" there is no way to clear
|
|
12936
|
+
* membership at all. The four methods below own every membership mutation
|
|
12937
|
+
* after creation.
|
|
12410
12938
|
*/
|
|
12411
12939
|
updateItem: {
|
|
12412
12940
|
params: {
|
|
@@ -12421,6 +12949,72 @@ type ContentToolMap = {
|
|
|
12421
12949
|
};
|
|
12422
12950
|
result: ContentItemResponse;
|
|
12423
12951
|
};
|
|
12952
|
+
/**
|
|
12953
|
+
* Link one source asset into an item at a given slide position (0 is the
|
|
12954
|
+
* cover). `organizationId` is never a parameter here or on the three methods
|
|
12955
|
+
* below: both foreign keys on `content_item_source_assets` are COMPOSITE
|
|
12956
|
+
* against `(id, organization_id)`, so the database refuses a cross-org link
|
|
12957
|
+
* structurally rather than by convention.
|
|
12958
|
+
*
|
|
12959
|
+
* There is deliberately no `listItemSourceAssets` method -- membership comes
|
|
12960
|
+
* back on `getItem` / `listItems` as `ContentItemResponse.sourceAssets`.
|
|
12961
|
+
*/
|
|
12962
|
+
addItemSourceAsset: {
|
|
12963
|
+
params: {
|
|
12964
|
+
itemId: string;
|
|
12965
|
+
sourceAssetId: string;
|
|
12966
|
+
/** Slide order, 0 is the cover. Unique within the item. */
|
|
12967
|
+
position: number;
|
|
12968
|
+
/** Per-MEMBERSHIP crop box in normalized fractions -- the same photo crops differently per item. */
|
|
12969
|
+
crop?: ContentAssetCropInput | null;
|
|
12970
|
+
altText?: string | null;
|
|
12971
|
+
};
|
|
12972
|
+
result: ContentItemSourceAssetResponse;
|
|
12973
|
+
};
|
|
12974
|
+
/**
|
|
12975
|
+
* Unlink one source asset from an item. The asset row itself is untouched --
|
|
12976
|
+
* `content_item_source_assets.source_asset_id` is `ON DELETE RESTRICT`
|
|
12977
|
+
* precisely so a used asset cannot vanish out from under a published post.
|
|
12978
|
+
*/
|
|
12979
|
+
removeItemSourceAsset: {
|
|
12980
|
+
params: {
|
|
12981
|
+
itemId: string;
|
|
12982
|
+
sourceAssetId: string;
|
|
12983
|
+
};
|
|
12984
|
+
result: void;
|
|
12985
|
+
};
|
|
12986
|
+
/**
|
|
12987
|
+
* Reorder an item's slides. `orderedAssetIds` is the item's COMPLETE
|
|
12988
|
+
* membership in its new order -- index becomes `position`, so index 0 is the
|
|
12989
|
+
* new cover, and a list that does not name exactly the current membership is
|
|
12990
|
+
* rejected.
|
|
12991
|
+
*
|
|
12992
|
+
* `UNIQUE (content_item_id, position)` is DEFERRABLE INITIALLY DEFERRED, so
|
|
12993
|
+
* this is plain per-row updates inside one transaction. An implementation
|
|
12994
|
+
* that shuffles through a temporary offset is a sign the deferrable
|
|
12995
|
+
* constraint was not used.
|
|
12996
|
+
*/
|
|
12997
|
+
reorderItemSourceAssets: {
|
|
12998
|
+
params: {
|
|
12999
|
+
itemId: string;
|
|
13000
|
+
orderedAssetIds: string[];
|
|
13001
|
+
};
|
|
13002
|
+
result: ContentItemSourceAssetListResponse;
|
|
13003
|
+
};
|
|
13004
|
+
/**
|
|
13005
|
+
* Patch one membership's per-slide attributes. `position` is not here --
|
|
13006
|
+
* moving a slide is `reorderItemSourceAssets` -- and neither is
|
|
13007
|
+
* `sourceAssetId`: swapping the asset is a remove plus an add.
|
|
13008
|
+
*/
|
|
13009
|
+
updateItemSourceAsset: {
|
|
13010
|
+
params: {
|
|
13011
|
+
itemId: string;
|
|
13012
|
+
sourceAssetId: string;
|
|
13013
|
+
crop?: ContentAssetCropInput | null;
|
|
13014
|
+
altText?: string | null;
|
|
13015
|
+
};
|
|
13016
|
+
result: ContentItemSourceAssetResponse;
|
|
13017
|
+
};
|
|
12424
13018
|
/**
|
|
12425
13019
|
* Record a pipeline-step attempt against an item. `attemptNumber` is
|
|
12426
13020
|
* assigned server-side inside the write (Decision 6) -- never
|
|
@@ -12513,6 +13107,30 @@ type ContentToolMap = {
|
|
|
12513
13107
|
};
|
|
12514
13108
|
result: ContentSourceAssetResponse;
|
|
12515
13109
|
};
|
|
13110
|
+
/**
|
|
13111
|
+
* Fetch a single distribution by id, org-scoped -- lets a producer read back
|
|
13112
|
+
* a distribution it just wrote before writing to it again, the idempotency
|
|
13113
|
+
* check `createDistribution`/`updateDistribution` alone cannot provide.
|
|
13114
|
+
*/
|
|
13115
|
+
getDistribution: {
|
|
13116
|
+
params: {
|
|
13117
|
+
distributionId: string;
|
|
13118
|
+
};
|
|
13119
|
+
result: ContentDistributionResponse | null;
|
|
13120
|
+
};
|
|
13121
|
+
/** Query distributions -- e.g. a producer checking what's already been created for an item. */
|
|
13122
|
+
listDistributions: {
|
|
13123
|
+
params: {
|
|
13124
|
+
contentItemId?: string;
|
|
13125
|
+
platform?: ContentDistributionPlatform;
|
|
13126
|
+
status?: ContentDistributionStatus;
|
|
13127
|
+
limit?: number;
|
|
13128
|
+
offset?: number;
|
|
13129
|
+
};
|
|
13130
|
+
result: {
|
|
13131
|
+
data: ContentDistributionResponse[];
|
|
13132
|
+
};
|
|
13133
|
+
};
|
|
12516
13134
|
/** Insert a `content_distributions` row for one platform/format target. */
|
|
12517
13135
|
createDistribution: {
|
|
12518
13136
|
params: {
|
|
@@ -12523,7 +13141,7 @@ type ContentToolMap = {
|
|
|
12523
13141
|
adaptedBody?: string | null;
|
|
12524
13142
|
platformContent?: unknown;
|
|
12525
13143
|
checklist?: unknown;
|
|
12526
|
-
mediaUrls?:
|
|
13144
|
+
mediaUrls?: ContentMediaEntry[];
|
|
12527
13145
|
};
|
|
12528
13146
|
result: ContentDistributionResponse;
|
|
12529
13147
|
};
|
|
@@ -12535,7 +13153,7 @@ type ContentToolMap = {
|
|
|
12535
13153
|
adaptedBody?: string | null;
|
|
12536
13154
|
platformContent?: unknown;
|
|
12537
13155
|
checklist?: unknown;
|
|
12538
|
-
mediaUrls?:
|
|
13156
|
+
mediaUrls?: ContentMediaEntry[];
|
|
12539
13157
|
publishMethod?: string | null;
|
|
12540
13158
|
publishedAt?: string | null;
|
|
12541
13159
|
platformPostId?: string | null;
|
|
@@ -14128,7 +14746,19 @@ declare class RegistryValidationError extends Error {
|
|
|
14128
14746
|
readonly orgName: string;
|
|
14129
14747
|
readonly resourceId: string | null;
|
|
14130
14748
|
readonly field: string | null;
|
|
14131
|
-
|
|
14749
|
+
/** Every issue message the check found, not just the one embedded in `message`. Populated by
|
|
14750
|
+
* the collect-all-issues sites (`emitGovernanceIssues`, `validateDeclaredSystemInterfaceReadiness`)
|
|
14751
|
+
* so a caller (e.g. the CLI's error renderer) can print the whole list instead of round-tripping
|
|
14752
|
+
* once per issue. Undefined for every other throw site in this file, which still reports one
|
|
14753
|
+
* issue at a time. */
|
|
14754
|
+
readonly issues?: string[] | undefined;
|
|
14755
|
+
constructor(orgName: string, resourceId: string | null, field: string | null, message: string,
|
|
14756
|
+
/** Every issue message the check found, not just the one embedded in `message`. Populated by
|
|
14757
|
+
* the collect-all-issues sites (`emitGovernanceIssues`, `validateDeclaredSystemInterfaceReadiness`)
|
|
14758
|
+
* so a caller (e.g. the CLI's error renderer) can print the whole list instead of round-tripping
|
|
14759
|
+
* once per issue. Undefined for every other throw site in this file, which still reports one
|
|
14760
|
+
* issue at a time. */
|
|
14761
|
+
issues?: string[] | undefined);
|
|
14132
14762
|
}
|
|
14133
14763
|
type ResourceValidatorMode = 'strict' | 'warn-only';
|
|
14134
14764
|
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 +14800,10 @@ interface SystemInterfaceReadinessValidationResult {
|
|
|
14170
14800
|
valid: boolean;
|
|
14171
14801
|
issues: SystemInterfaceReadinessValidationIssue[];
|
|
14172
14802
|
}
|
|
14803
|
+
interface SystemInterfaceReadinessValidationOptions {
|
|
14804
|
+
mode?: ResourceValidatorMode;
|
|
14805
|
+
onWarning?: (issue: SystemInterfaceReadinessValidationIssue) => void;
|
|
14806
|
+
}
|
|
14173
14807
|
/**
|
|
14174
14808
|
* Validates runtime resource definitions against OM Resources and Systems.
|
|
14175
14809
|
*
|
|
@@ -14190,7 +14824,7 @@ declare function validateResourceGovernance(orgName: string, deployment: Deploym
|
|
|
14190
14824
|
* Contract-absent models remain valid until they opt in with
|
|
14191
14825
|
* `systems.*.apiInterface`.
|
|
14192
14826
|
*/
|
|
14193
|
-
declare function validateDeclaredSystemInterfaceReadiness(orgName: string, organizationModel: ResourceGovernanceModel | undefined): SystemInterfaceReadinessValidationResult;
|
|
14827
|
+
declare function validateDeclaredSystemInterfaceReadiness(orgName: string, organizationModel: ResourceGovernanceModel | undefined, options?: SystemInterfaceReadinessValidationOptions): SystemInterfaceReadinessValidationResult;
|
|
14194
14828
|
|
|
14195
14829
|
/**
|
|
14196
14830
|
* LLM Platform Tool Adapter
|
|
@@ -14204,14 +14838,18 @@ declare function validateDeclaredSystemInterfaceReadiness(orgName: string, organ
|
|
|
14204
14838
|
type LLMProvider = 'openai' | 'anthropic' | 'openrouter';
|
|
14205
14839
|
/**
|
|
14206
14840
|
* SDK LLM generate params.
|
|
14207
|
-
*
|
|
14208
|
-
*
|
|
14841
|
+
*
|
|
14842
|
+
* `provider` and `model` are optional, and omitting them is a real choice rather than a shorthand:
|
|
14843
|
+
* the platform then resolves the pair from the resource's own `modelConfig`, and failing that from
|
|
14844
|
+
* the `DEFAULT_LLM_MODEL` environment variable. A call that names a model always wins, so a
|
|
14845
|
+
* resource that states its model keeps stating it. Supply both or neither — a half-supplied pair is
|
|
14846
|
+
* rejected, because pairing an explicit provider with a defaulted model silently mismatches them.
|
|
14209
14847
|
*/
|
|
14210
14848
|
interface SDKLLMGenerateParams extends Omit<LLMGenerateRequest, 'signal'> {
|
|
14211
|
-
/** LLM provider */
|
|
14212
|
-
provider
|
|
14213
|
-
/** Model identifier — must be a supported LLMModel */
|
|
14214
|
-
model
|
|
14849
|
+
/** LLM provider. Omit to inherit the resource's `modelConfig`, then the platform default. */
|
|
14850
|
+
provider?: LLMProvider;
|
|
14851
|
+
/** Model identifier — must be a supported LLMModel. Omit to inherit alongside `provider`. */
|
|
14852
|
+
model?: LLMModel;
|
|
14215
14853
|
}
|
|
14216
14854
|
|
|
14217
14855
|
type ResourceStatus = 'dev' | 'prod';
|
|
@@ -14401,4 +15039,4 @@ declare const ListBuilderStageKeySchema: z.ZodString;
|
|
|
14401
15039
|
type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
|
|
14402
15040
|
|
|
14403
15041
|
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 };
|
|
15042
|
+
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, 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, 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 };
|