@vertesia/common 1.6.0-dev.20261014.015055Z → 1.6.0-dev.20261022.120426Z

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 (126) hide show
  1. package/lib/api-contract/components.generated.json +1243 -121
  2. package/lib/api-schemas/agent-runs.d.ts +52 -0
  3. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  4. package/lib/api-schemas/agent-runs.js +5 -4
  5. package/lib/api-schemas/agent-runs.js.map +1 -1
  6. package/lib/api-schemas/apikey.d.ts +3 -40
  7. package/lib/api-schemas/apikey.d.ts.map +1 -1
  8. package/lib/api-schemas/apikey.js +3 -17
  9. package/lib/api-schemas/apikey.js.map +1 -1
  10. package/lib/api-schemas/app-lifecycle.d.ts +126 -0
  11. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
  12. package/lib/api-schemas/app-lifecycle.js +134 -1
  13. package/lib/api-schemas/app-lifecycle.js.map +1 -1
  14. package/lib/api-schemas/app-runtime.d.ts +466 -0
  15. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  16. package/lib/api-schemas/app-runtime.js +50 -1
  17. package/lib/api-schemas/app-runtime.js.map +1 -1
  18. package/lib/api-schemas/apps.d.ts +73 -0
  19. package/lib/api-schemas/apps.d.ts.map +1 -1
  20. package/lib/api-schemas/apps.js +41 -0
  21. package/lib/api-schemas/apps.js.map +1 -1
  22. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  23. package/lib/api-schemas/audit-trail.js +5 -5
  24. package/lib/api-schemas/audit-trail.js.map +1 -1
  25. package/lib/api-schemas/content.d.ts +25 -0
  26. package/lib/api-schemas/content.d.ts.map +1 -1
  27. package/lib/api-schemas/content.js +5 -5
  28. package/lib/api-schemas/content.js.map +1 -1
  29. package/lib/api-schemas/data-store.d.ts.map +1 -1
  30. package/lib/api-schemas/data-store.js +17 -1
  31. package/lib/api-schemas/data-store.js.map +1 -1
  32. package/lib/api-schemas/document-processing.d.ts +15 -0
  33. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  34. package/lib/api-schemas/events.d.ts +45 -0
  35. package/lib/api-schemas/events.d.ts.map +1 -1
  36. package/lib/api-schemas/inference-profile.d.ts +30 -0
  37. package/lib/api-schemas/inference-profile.d.ts.map +1 -1
  38. package/lib/api-schemas/interaction.d.ts +405 -0
  39. package/lib/api-schemas/interaction.d.ts.map +1 -1
  40. package/lib/api-schemas/interaction.js +38 -7
  41. package/lib/api-schemas/interaction.js.map +1 -1
  42. package/lib/api-schemas/oauth-server.d.ts +128 -0
  43. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  44. package/lib/api-schemas/oauth-server.js +95 -2
  45. package/lib/api-schemas/oauth-server.js.map +1 -1
  46. package/lib/api-schemas/process.d.ts +11 -0
  47. package/lib/api-schemas/process.d.ts.map +1 -1
  48. package/lib/api-schemas/process.js +12 -0
  49. package/lib/api-schemas/process.js.map +1 -1
  50. package/lib/api-schemas/project-configuration.d.ts +50 -0
  51. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  52. package/lib/api-schemas/project.d.ts +75 -0
  53. package/lib/api-schemas/project.d.ts.map +1 -1
  54. package/lib/api-schemas/prompt.d.ts.map +1 -1
  55. package/lib/api-schemas/prompt.js +5 -2
  56. package/lib/api-schemas/prompt.js.map +1 -1
  57. package/lib/api-schemas/registry.d.ts +1271 -30
  58. package/lib/api-schemas/registry.d.ts.map +1 -1
  59. package/lib/api-schemas/registry.js +39 -9
  60. package/lib/api-schemas/registry.js.map +1 -1
  61. package/lib/api-schemas/schema-primitives.d.ts +8 -0
  62. package/lib/api-schemas/schema-primitives.d.ts.map +1 -1
  63. package/lib/api-schemas/schema-primitives.js +8 -0
  64. package/lib/api-schemas/schema-primitives.js.map +1 -1
  65. package/lib/api-schemas/store.d.ts +250 -0
  66. package/lib/api-schemas/store.d.ts.map +1 -1
  67. package/lib/api-schemas/store.js +3 -3
  68. package/lib/api-schemas/store.js.map +1 -1
  69. package/lib/api-schemas/task.d.ts.map +1 -1
  70. package/lib/api-schemas/task.js +3 -2
  71. package/lib/api-schemas/task.js.map +1 -1
  72. package/lib/api-schemas/workflow-runs.d.ts +10 -0
  73. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  74. package/lib/apikey.d.ts +7 -2
  75. package/lib/apikey.d.ts.map +1 -1
  76. package/lib/apikey.js.map +1 -1
  77. package/lib/apps.d.ts +37 -1
  78. package/lib/apps.d.ts.map +1 -1
  79. package/lib/apps.js +74 -3
  80. package/lib/apps.js.map +1 -1
  81. package/lib/interaction.d.ts +3 -3
  82. package/lib/interaction.d.ts.map +1 -1
  83. package/lib/interaction.js.map +1 -1
  84. package/lib/oauth-server.d.ts +5 -0
  85. package/lib/oauth-server.d.ts.map +1 -1
  86. package/lib/store/index.d.ts +1 -0
  87. package/lib/store/index.d.ts.map +1 -1
  88. package/lib/store/index.js +1 -0
  89. package/lib/store/index.js.map +1 -1
  90. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  91. package/lib/store/intake-policy-schema.generated.js +1 -2
  92. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  93. package/lib/store/text-limits.d.ts +18 -0
  94. package/lib/store/text-limits.d.ts.map +1 -0
  95. package/lib/store/text-limits.js +56 -0
  96. package/lib/store/text-limits.js.map +1 -0
  97. package/lib/vertesia-common.js +4 -2
  98. package/lib/vertesia-common.js.map +1 -1
  99. package/lib/wire-types.generated.d.ts +261 -34
  100. package/lib/wire-types.generated.d.ts.map +1 -1
  101. package/package.json +12 -7
  102. package/src/api-contract/components.generated.json +1243 -121
  103. package/src/api-schemas/agent-runs.ts +5 -3
  104. package/src/api-schemas/apikey.ts +3 -21
  105. package/src/api-schemas/app-lifecycle.ts +163 -1
  106. package/src/api-schemas/app-runtime.ts +54 -0
  107. package/src/api-schemas/apps.ts +46 -0
  108. package/src/api-schemas/audit-trail.ts +5 -5
  109. package/src/api-schemas/content.ts +5 -5
  110. package/src/api-schemas/data-store.ts +19 -1
  111. package/src/api-schemas/interaction.ts +48 -7
  112. package/src/api-schemas/oauth-server.ts +103 -2
  113. package/src/api-schemas/process.ts +13 -0
  114. package/src/api-schemas/prompt.ts +5 -2
  115. package/src/api-schemas/registry.ts +60 -6
  116. package/src/api-schemas/schema-primitives.ts +9 -0
  117. package/src/api-schemas/store.ts +3 -3
  118. package/src/api-schemas/task.ts +3 -2
  119. package/src/apikey.ts +8 -2
  120. package/src/apps.ts +116 -3
  121. package/src/interaction.ts +6 -3
  122. package/src/oauth-server.ts +10 -0
  123. package/src/store/index.ts +1 -0
  124. package/src/store/intake-policy-schema.generated.ts +1 -2
  125. package/src/store/text-limits.ts +64 -0
  126. package/src/wire-types.generated.ts +281 -34
@@ -17,6 +17,7 @@ import type {
17
17
  JSONSchema,
18
18
  JSONValue,
19
19
  JsonResult,
20
+ // biome-ignore lint/suspicious/noDeprecatedImports: Legacy output_modality contracts require Modalities.
20
21
  Modalities,
21
22
  ModelOptions,
22
23
  ModelSearchPayload,
@@ -231,9 +232,6 @@ export type StripeBillingStatusResponseFromSchema = StripeBillingEnabled | Strip
231
232
  export type ApiKeyListQueryFromSchema = {
232
233
  level?: 'account' | 'project' | undefined;
233
234
  };
234
- export type ApiKeyReadQueryFromSchema = {
235
- withValue?: boolean | undefined;
236
- };
237
235
  export type ProjectRefArrayFromSchema = ProjectRef[];
238
236
  export type ApiKeyFromSchema = {
239
237
  id: string;
@@ -277,27 +275,6 @@ export type ApiKeyWithValueFromSchema = {
277
275
  compartments?: string[] | undefined;
278
276
  value: string;
279
277
  };
280
- export type ApiKeyReadResponseFromSchema = {
281
- id: string;
282
- name: string;
283
- type: (typeof ApiKeyTypes)['secret'];
284
- role: (typeof SystemRoles)[keyof typeof SystemRoles];
285
- maskedValue?: string | undefined;
286
- can_retrieve_value?: boolean | undefined;
287
- account: string;
288
- project: ProjectRef;
289
- enabled: boolean;
290
- scim_provisioning?: boolean | undefined;
291
- created_by: string;
292
- updated_by: string;
293
- created_at: string;
294
- updated_at: string;
295
- expires_at?: string | undefined;
296
- properties?: Record<string, unknown> | undefined;
297
- clearance?: number | undefined;
298
- compartments?: string[] | undefined;
299
- value?: string | undefined;
300
- };
301
278
  export type CreateApiKeyPayloadFromSchema = {
302
279
  name: string;
303
280
  role: (typeof SystemRoles)[keyof typeof SystemRoles];
@@ -524,10 +501,8 @@ export type ApiKeyArray = ApiKeyArrayFromSchema;
524
501
  export type CreateApiKeyPayload = CreateApiKeyPayloadFromSchema;
525
502
  export type UpdateApiKeyPayload = UpdateApiKeyPayloadFromSchema;
526
503
  export type ApiKeyWithValue = ApiKeyWithValueFromSchema;
527
- export type ApiKeyReadResponse = ApiKeyReadResponseFromSchema;
528
504
  export type AuthTokenResponse = AuthTokenResponseFromSchema;
529
505
  export type ApiKeyListQuery = ApiKeyListQueryFromSchema;
530
- export type ApiKeyReadQuery = ApiKeyReadQueryFromSchema;
531
506
  export type AccountApiKey = {
532
507
  id: string;
533
508
  name: string;
@@ -575,6 +550,9 @@ export type AppUIConfig = {
575
550
  navigation?: AppUINavItem[] | undefined;
576
551
  available_in?: AppAvailableIn[] | undefined;
577
552
  };
553
+ export type AppOAuthClientConfig = {
554
+ redirect_uris: string[];
555
+ };
578
556
  export type AppInstallationProjectsQuery = {
579
557
  name?: string | undefined;
580
558
  id?: string | undefined;
@@ -609,6 +587,8 @@ export type MCPToolCollectionObject = {
609
587
  url: string;
610
588
  auth?: ToolCollectionAuthType | undefined;
611
589
  type: 'mcp';
590
+ parameters?: Record<string, McpConnectionParameter> | undefined;
591
+ headers?: Record<string, string> | undefined;
612
592
  id: string;
613
593
  name: string;
614
594
  description: string;
@@ -846,6 +826,7 @@ export type AppBuildProgress = {
846
826
  updated_at: string;
847
827
  };
848
828
  export type AppScaffoldModule = 'service' | 'assistant' | 'content-app' | 'examples';
829
+ export type AppScaffoldSourceMode = 'generate' | 'existing';
849
830
  export type StartAppScaffoldRequest = {
850
831
  app_id: string;
851
832
  title?: string | undefined;
@@ -854,6 +835,10 @@ export type StartAppScaffoldRequest = {
854
835
  oauth_scopes?: string[] | undefined;
855
836
  appgen_package_spec?: string | undefined;
856
837
  create_version?: boolean | undefined;
838
+ source_mode?: AppScaffoldSourceMode | undefined;
839
+ source?: AppSourceConfig | undefined;
840
+ github_connection_id?: string | undefined;
841
+ github_repository_creation?: AppGithubRepositoryCreation | undefined;
857
842
  };
858
843
  export type StartAppScaffoldResponse = {
859
844
  workflow_id: string;
@@ -863,6 +848,69 @@ export type StartAppScaffoldResponse = {
863
848
  git_url?: string | undefined;
864
849
  create_version: boolean;
865
850
  };
851
+ export type AppGithubConfiguration = {
852
+ enabled: boolean;
853
+ app_slug?: string | undefined;
854
+ install_url?: string | undefined;
855
+ relay_url?: string | undefined;
856
+ };
857
+ export type StartAppGithubAuthorizationResponse = {
858
+ authorization_url: string;
859
+ };
860
+ export type ExchangeAppGithubAuthorizationRequest = {
861
+ code: string;
862
+ state: string;
863
+ };
864
+ export type AppGithubRepositoriesQuery = {
865
+ connection_id: string;
866
+ installation_id: string;
867
+ };
868
+ export type AppGithubInstallation = {
869
+ id: string;
870
+ account_login: string;
871
+ account_type?: string | undefined;
872
+ repository_selection: 'all' | 'selected';
873
+ };
874
+ export type AppGithubAccount = {
875
+ login: string;
876
+ account_type: string;
877
+ avatar_url?: string | undefined;
878
+ };
879
+ export type ExchangeAppGithubAuthorizationResponse = {
880
+ connection_id: string;
881
+ installations: AppGithubInstallation[];
882
+ accounts: AppGithubAccount[];
883
+ };
884
+ export type AppGithubRepository = {
885
+ name: string;
886
+ full_name: string;
887
+ private: boolean;
888
+ default_branch: string;
889
+ html_url: string;
890
+ };
891
+ export type AppGithubRepositoryCreation = {
892
+ name: string;
893
+ private?: boolean | undefined;
894
+ };
895
+ export type AppGithubRepositoryList = {
896
+ repositories: AppGithubRepository[];
897
+ };
898
+ export type AppGithubRepositorySetupQuery = {
899
+ connection_id: string;
900
+ installation_id: string;
901
+ repository: string;
902
+ branch: string;
903
+ };
904
+ export type AppGithubBranchState = {
905
+ name: string;
906
+ exists: boolean;
907
+ empty: boolean;
908
+ };
909
+ export type AppGithubRepositorySetup = {
910
+ default_branch: string;
911
+ branches: string[];
912
+ selected_branch: AppGithubBranchState;
913
+ };
866
914
  export type StartAppDevelopmentTaskRequest = {
867
915
  prompt: string;
868
916
  environment: string;
@@ -905,7 +953,9 @@ export type AppScaffoldProgress = {
905
953
  */
906
954
  export type AppAccessControl = 'all' | 'ui' | 'none';
907
955
  export type AppManifestData = {
956
+ parameters?: Record<string, McpConnectionParameter> | undefined;
908
957
  oauth_scopes?: string[] | undefined;
958
+ oauth_client?: AppOAuthClientConfig | undefined;
909
959
  name: string;
910
960
  visibility: 'public' | 'private' | 'vertesia';
911
961
  title: string;
@@ -934,7 +984,9 @@ export type AppManifestData = {
934
984
  access_control?: AppAccessControl | undefined;
935
985
  };
936
986
  export type UpdateAppPayload = {
987
+ parameters?: Record<string, McpConnectionParameter> | undefined;
937
988
  oauth_scopes?: string[] | undefined;
989
+ oauth_client?: AppOAuthClientConfig | undefined;
938
990
  name: string;
939
991
  visibility: 'public' | 'private' | 'vertesia';
940
992
  title: string;
@@ -964,11 +1016,15 @@ export type UpdateAppPayload = {
964
1016
  expected_edit_revision?: number | undefined;
965
1017
  };
966
1018
  export type AppGitSourceConfig = {
1019
+ provider?: AppGitSourceProvider | undefined;
967
1020
  url?: string | undefined;
1021
+ installation_id?: string | undefined;
1022
+ repository?: string | undefined;
968
1023
  default_branch?: string | undefined;
969
1024
  production_branch?: string | undefined;
970
1025
  development_branch?: string | undefined;
971
1026
  };
1027
+ export type AppGitSourceProvider = 'vertesia' | 'github';
972
1028
  export type AppSourceConfig = {
973
1029
  kind: 'git';
974
1030
  git?: AppGitSourceConfig | undefined;
@@ -1108,6 +1164,7 @@ export type AppEventSubscriptionDefinition = {
1108
1164
  priority?: EventPriority | undefined;
1109
1165
  };
1110
1166
  export type AppPackage = {
1167
+ oauth_client?: AppOAuthClientConfig | undefined;
1111
1168
  oauth_scopes?: string[] | undefined;
1112
1169
  ui?: AppUIConfig | undefined;
1113
1170
  tools?: AgentToolDefinition[] | undefined;
@@ -1189,7 +1246,9 @@ export type RenderingTemplateDefinitionRef = {
1189
1246
  tags?: string[] | undefined;
1190
1247
  };
1191
1248
  export type AppManifest = {
1249
+ parameters?: Record<string, McpConnectionParameter> | undefined;
1192
1250
  oauth_scopes?: string[] | undefined;
1251
+ oauth_client?: AppOAuthClientConfig | undefined;
1193
1252
  edit_revision: number;
1194
1253
  name: string;
1195
1254
  visibility: 'public' | 'private' | 'vertesia';
@@ -1225,7 +1284,10 @@ export type AppManifest = {
1225
1284
  export type AppManifestSource = {
1226
1285
  kind: 'git';
1227
1286
  git: {
1287
+ provider?: AppGitSourceProvider | undefined;
1228
1288
  url: string;
1289
+ installation_id?: string | undefined;
1290
+ repository?: string | undefined;
1229
1291
  default_branch?: string | undefined;
1230
1292
  production_branch?: string | undefined;
1231
1293
  development_branch?: string | undefined;
@@ -1254,7 +1316,22 @@ export type AppInstallationProviderBinding = {
1254
1316
  export type AppInstallation = {
1255
1317
  id: string;
1256
1318
  project: string;
1319
+ instance_key?: string | undefined;
1320
+ display_name?: string | undefined;
1321
+ installation_version?: 1 | undefined;
1322
+ namespace_overrides?: Record<string, string> | undefined;
1323
+ reserved_namespaces?: string[] | undefined;
1324
+ namespace_conflicts?: string[] | undefined;
1257
1325
  manifest: string;
1326
+ mcp_configuration?:
1327
+ | {
1328
+ revision: string;
1329
+ values: Record<string, Record<string, string>>;
1330
+ configured_secrets: Record<string, string[]>;
1331
+ shared_values?: Record<string, string> | undefined;
1332
+ configured_shared_secrets?: string[] | undefined;
1333
+ }
1334
+ | undefined;
1258
1335
  oauth_approval?:
1259
1336
  | {
1260
1337
  scopes: string[];
@@ -1262,6 +1339,7 @@ export type AppInstallation = {
1262
1339
  approved_at: string;
1263
1340
  }
1264
1341
  | undefined;
1342
+ oauth_client_id?: string | undefined;
1265
1343
  settings?:
1266
1344
  | {
1267
1345
  [k: string]: unknown;
@@ -1277,6 +1355,21 @@ export type AppInstallation = {
1277
1355
  export type AppInstallationWithManifest = {
1278
1356
  id: string;
1279
1357
  project: string;
1358
+ instance_key?: string | undefined;
1359
+ display_name?: string | undefined;
1360
+ installation_version?: 1 | undefined;
1361
+ namespace_overrides?: Record<string, string> | undefined;
1362
+ reserved_namespaces?: string[] | undefined;
1363
+ namespace_conflicts?: string[] | undefined;
1364
+ mcp_configuration?:
1365
+ | {
1366
+ revision: string;
1367
+ values: Record<string, Record<string, string>>;
1368
+ configured_secrets: Record<string, string[]>;
1369
+ shared_values?: Record<string, string> | undefined;
1370
+ configured_shared_secrets?: string[] | undefined;
1371
+ }
1372
+ | undefined;
1280
1373
  oauth_approval?:
1281
1374
  | {
1282
1375
  scopes: string[];
@@ -1284,6 +1377,7 @@ export type AppInstallationWithManifest = {
1284
1377
  approved_at: string;
1285
1378
  }
1286
1379
  | undefined;
1380
+ oauth_client_id?: string | undefined;
1287
1381
  settings?:
1288
1382
  | {
1289
1383
  [k: string]: unknown;
@@ -1301,6 +1395,21 @@ export type AppInstallationWithManifest = {
1301
1395
  export type AppInstallationListEntry = {
1302
1396
  id: string;
1303
1397
  project: string;
1398
+ instance_key?: string | undefined;
1399
+ display_name?: string | undefined;
1400
+ installation_version?: 1 | undefined;
1401
+ namespace_overrides?: Record<string, string> | undefined;
1402
+ reserved_namespaces?: string[] | undefined;
1403
+ namespace_conflicts?: string[] | undefined;
1404
+ mcp_configuration?:
1405
+ | {
1406
+ revision: string;
1407
+ values: Record<string, Record<string, string>>;
1408
+ configured_secrets: Record<string, string[]>;
1409
+ shared_values?: Record<string, string> | undefined;
1410
+ configured_shared_secrets?: string[] | undefined;
1411
+ }
1412
+ | undefined;
1304
1413
  oauth_approval?:
1305
1414
  | {
1306
1415
  scopes: string[];
@@ -1308,6 +1417,7 @@ export type AppInstallationListEntry = {
1308
1417
  approved_at: string;
1309
1418
  }
1310
1419
  | undefined;
1420
+ oauth_client_id?: string | undefined;
1311
1421
  settings?:
1312
1422
  | {
1313
1423
  [k: string]: unknown;
@@ -1341,6 +1451,11 @@ export type AppApiKeyCollectionParams = {
1341
1451
  export type AppOAuthProviderParams = AppOAuthCollectionParams;
1342
1452
  export type AppInstallationPayload = {
1343
1453
  app_id: string;
1454
+ instance_key?: string | undefined;
1455
+ display_name?: string | undefined;
1456
+ namespace_overrides?: Record<string, string> | undefined;
1457
+ mcp_shared_parameters?: Record<string, string | null> | undefined;
1458
+ mcp_parameters?: Record<string, Record<string, string | null>> | undefined;
1344
1459
  settings?:
1345
1460
  | {
1346
1461
  [k: string]: unknown;
@@ -1360,6 +1475,7 @@ export type AppInstallationKind = 'ui' | 'tools' | 'all';
1360
1475
  */
1361
1476
  export type AppToolCollection = {
1362
1477
  name: string;
1478
+ collection_id?: string | undefined;
1363
1479
  description?: string | undefined;
1364
1480
  tools: AgentToolDefinition[];
1365
1481
  };
@@ -1626,6 +1742,23 @@ export type AppDeleteSummary = {
1626
1742
  export type UpdateAppInstallationOAuthApprovalPayload = {
1627
1743
  approved_scopes: string[];
1628
1744
  };
1745
+ export type AppInstanceAvailability = {
1746
+ enabled: boolean;
1747
+ };
1748
+ export type McpPublicParameter = {
1749
+ title?: string | undefined;
1750
+ description?: string | undefined;
1751
+ required?: boolean | undefined;
1752
+ type?: 'string' | undefined;
1753
+ default?: string | undefined;
1754
+ };
1755
+ export type McpSecretParameter = {
1756
+ title?: string | undefined;
1757
+ description?: string | undefined;
1758
+ required?: boolean | undefined;
1759
+ type: 'secret';
1760
+ };
1761
+ export type McpConnectionParameter = McpPublicParameter | McpSecretParameter;
1629
1762
  /**
1630
1763
  * Generic metering entry attached to audit events.
1631
1764
  * Used for cost attribution, usage tracking, and billing.
@@ -3846,6 +3979,16 @@ export type CatalogInteractionRef = {
3846
3979
  title: string;
3847
3980
  description?: string | undefined;
3848
3981
  };
3982
+ export type ExecuteNamedInteractionQuery = {
3983
+ include_prompt?: boolean | undefined;
3984
+ };
3985
+ export type GetRunQuery = {
3986
+ include_prompt?: boolean | undefined;
3987
+ };
3988
+ export type ExecuteInteractionByEndpointQuery = {
3989
+ tag?: string | undefined;
3990
+ include_prompt?: boolean | undefined;
3991
+ };
3849
3992
  export type ResolveInteractionQuery = {
3850
3993
  environment?: string | undefined;
3851
3994
  model?: string | undefined;
@@ -4201,6 +4344,7 @@ export type AsyncConversationExecutionPayload = {
4201
4344
  asyncCompletion?: AsyncCompletionOptions | undefined;
4202
4345
  type: 'conversation';
4203
4346
  notify_endpoints?: string[] | undefined;
4347
+ idempotency_key?: string | undefined;
4204
4348
  task_queue?: string | undefined;
4205
4349
  tool_approval_mode?: AgentToolApprovalMode | undefined;
4206
4350
  visibility?: ConversationVisibility | undefined;
@@ -4613,8 +4757,12 @@ export type OAuthClientType = 'public' | 'confidential';
4613
4757
  export type OAuthClientStatus = 'active' | 'disabled';
4614
4758
  export type OAuthRegistrationSource = 'admin' | 'dynamic';
4615
4759
  export type OAuthProjectBindingMode = 'user_select' | 'fixed';
4616
- export type OAuthTokenEndpointAuthMethod = 'none' | 'client_secret_post' | 'client_secret_basic';
4617
- export type OAuthGrantType = 'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:device_code';
4760
+ export type OAuthTokenEndpointAuthMethod = 'none' | 'client_secret_post' | 'client_secret_basic' | 'private_key_jwt';
4761
+ export type OAuthGrantType =
4762
+ | 'authorization_code'
4763
+ | 'refresh_token'
4764
+ | 'urn:ietf:params:oauth:grant-type:device_code'
4765
+ | 'urn:ietf:params:oauth:grant-type:token-exchange';
4618
4766
  export type OAuthResponseType = 'code';
4619
4767
  export type OAuthAuthorizationRequestStatus = 'pending' | 'denied' | 'consumed';
4620
4768
  export type OAuthClientRegistrationMode = 'registered' | 'client_id_metadata_document';
@@ -4630,12 +4778,14 @@ export type OAuthGrantSortField =
4630
4778
  export type OAuthGrantSortOrder = 'asc' | 'desc';
4631
4779
  /** An OAuth client's registration, without the id the server issues for it. */
4632
4780
  export type OAuthClientData = {
4781
+ app_id?: string | undefined;
4633
4782
  client_name: string;
4634
4783
  client_type: OAuthClientType;
4635
4784
  redirect_uris: string[];
4636
4785
  grant_types: OAuthGrantType[];
4637
4786
  response_types: OAuthResponseType[];
4638
4787
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4788
+ jwks_uri?: string | undefined;
4639
4789
  allowed_scopes: string[];
4640
4790
  default_scopes?: string[] | undefined;
4641
4791
  registration_source: OAuthRegistrationSource;
@@ -4654,12 +4804,14 @@ export type OAuthClientData = {
4654
4804
  updated_at: string;
4655
4805
  };
4656
4806
  export type OAuthClient = {
4807
+ app_id?: string | undefined;
4657
4808
  client_name: string;
4658
4809
  client_type: OAuthClientType;
4659
4810
  redirect_uris: string[];
4660
4811
  grant_types: OAuthGrantType[];
4661
4812
  response_types: OAuthResponseType[];
4662
4813
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4814
+ jwks_uri?: string | undefined;
4663
4815
  allowed_scopes: string[];
4664
4816
  default_scopes?: string[] | undefined;
4665
4817
  registration_source: OAuthRegistrationSource;
@@ -4680,12 +4832,14 @@ export type OAuthClient = {
4680
4832
  };
4681
4833
  /** The read shape plus the client secret, which is returned by the create call and never again. */
4682
4834
  export type OAuthClientCreateResponse = {
4835
+ app_id?: string | undefined;
4683
4836
  client_name: string;
4684
4837
  client_type: OAuthClientType;
4685
4838
  redirect_uris: string[];
4686
4839
  grant_types: OAuthGrantType[];
4687
4840
  response_types: OAuthResponseType[];
4688
4841
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4842
+ jwks_uri?: string | undefined;
4689
4843
  allowed_scopes: string[];
4690
4844
  default_scopes?: string[] | undefined;
4691
4845
  registration_source: OAuthRegistrationSource;
@@ -4773,6 +4927,7 @@ export type CreateOAuthClientPayload = {
4773
4927
  grant_types?: OAuthGrantType[] | undefined;
4774
4928
  response_types?: OAuthResponseType[] | undefined;
4775
4929
  token_endpoint_auth_method?: OAuthTokenEndpointAuthMethod | undefined;
4930
+ jwks_uri?: string | undefined;
4776
4931
  allowed_scopes?: string[] | undefined;
4777
4932
  default_scopes?: string[] | undefined;
4778
4933
  project_binding_mode?: OAuthProjectBindingMode | undefined;
@@ -4791,9 +4946,11 @@ export type UpdateOAuthClientPayload = {
4791
4946
  grant_types?: OAuthGrantType[] | undefined;
4792
4947
  response_types?: OAuthResponseType[] | undefined;
4793
4948
  token_endpoint_auth_method?: OAuthTokenEndpointAuthMethod | undefined;
4949
+ jwks_uri?: string | undefined;
4794
4950
  allowed_scopes?: string[] | undefined;
4795
4951
  default_scopes?: string[] | undefined;
4796
4952
  status?: OAuthClientStatus | undefined;
4953
+ revoke_previous_client_secret?: boolean | undefined;
4797
4954
  project_binding_mode?: OAuthProjectBindingMode | undefined;
4798
4955
  fixed_project_id?: string | undefined;
4799
4956
  restrict_to_owner_account?: boolean | undefined;
@@ -4815,6 +4972,7 @@ export type OAuthAuthorizationServerMetadata = {
4815
4972
  grant_types_supported: string[];
4816
4973
  code_challenge_methods_supported: string[];
4817
4974
  token_endpoint_auth_methods_supported: string[];
4975
+ token_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
4818
4976
  scopes_supported: string[];
4819
4977
  client_id_metadata_document_supported?: boolean | undefined;
4820
4978
  authorization_response_iss_parameter_supported?: boolean | undefined;
@@ -4855,6 +5013,7 @@ export type OAuthAuthorizationRequest = {
4855
5013
  user_code?: string | undefined;
4856
5014
  client_id: string;
4857
5015
  client_name: string;
5016
+ app_id?: string | undefined;
4858
5017
  client_metadata?: OAuthClientDisplayMetadata | undefined;
4859
5018
  client_registration_mode?: OAuthClientRegistrationMode | undefined;
4860
5019
  redirect_uri: string;
@@ -4928,6 +5087,73 @@ export type OAuthLoginUserNotFoundResponse = {
4928
5087
  error: 'user_not_found';
4929
5088
  ensure_user_url: string;
4930
5089
  };
5090
+ export type OidcFederationConnectionPayload = {
5091
+ name: string;
5092
+ issuer: string;
5093
+ jwks_uri?: string | undefined;
5094
+ external_id_claim: string;
5095
+ allowed_audiences: string[];
5096
+ allowed_algorithms: ('RS256' | 'ES256')[];
5097
+ subject_token_type:
5098
+ | 'urn:ietf:params:oauth:token-type:jwt'
5099
+ | 'urn:ietf:params:oauth:token-type:id_token'
5100
+ | 'urn:ietf:params:oauth:token-type:access_token';
5101
+ required_claims?: Record<string, string> | undefined;
5102
+ all_projects?: boolean | undefined;
5103
+ allowed_project_ids: string[];
5104
+ allowed_client_ids?: string[] | undefined;
5105
+ allowed_scopes?: string[] | undefined;
5106
+ max_token_ttl_seconds: number;
5107
+ max_subject_token_age_seconds?: number | undefined;
5108
+ enabled: boolean;
5109
+ };
5110
+ export type OidcFederationConnection = {
5111
+ name: string;
5112
+ issuer: string;
5113
+ jwks_uri?: string | undefined;
5114
+ external_id_claim: string;
5115
+ allowed_audiences: string[];
5116
+ allowed_algorithms: ('RS256' | 'ES256')[];
5117
+ subject_token_type:
5118
+ | 'urn:ietf:params:oauth:token-type:jwt'
5119
+ | 'urn:ietf:params:oauth:token-type:id_token'
5120
+ | 'urn:ietf:params:oauth:token-type:access_token';
5121
+ required_claims?: Record<string, string> | undefined;
5122
+ all_projects?: boolean | undefined;
5123
+ allowed_project_ids: string[];
5124
+ allowed_client_ids?: string[] | undefined;
5125
+ allowed_scopes?: string[] | undefined;
5126
+ max_token_ttl_seconds: number;
5127
+ max_subject_token_age_seconds: number;
5128
+ enabled: boolean;
5129
+ id: string;
5130
+ account_id: string;
5131
+ };
5132
+ export type OidcFederationConnectionArray = OidcFederationConnection[];
5133
+ export type OAuthTokenExchangeRequest = {
5134
+ grant_type: 'urn:ietf:params:oauth:grant-type:token-exchange';
5135
+ subject_token: string;
5136
+ subject_token_type:
5137
+ | 'urn:ietf:params:oauth:token-type:jwt'
5138
+ | 'urn:ietf:params:oauth:token-type:id_token'
5139
+ | 'urn:ietf:params:oauth:token-type:access_token';
5140
+ requested_token_type?: 'urn:ietf:params:oauth:token-type:access_token' | undefined;
5141
+ federation_connection_id: string;
5142
+ client_id?: string | undefined;
5143
+ client_secret?: string | undefined;
5144
+ client_assertion?: string | undefined;
5145
+ client_assertion_type?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer' | undefined;
5146
+ project_id: string;
5147
+ resource: string;
5148
+ scope?: string | undefined;
5149
+ };
5150
+ export type OAuthTokenExchangeResponse = {
5151
+ access_token: string;
5152
+ token_type: 'Bearer';
5153
+ expires_in: number;
5154
+ scope?: string | undefined;
5155
+ issued_token_type: 'urn:ietf:params:oauth:token-type:access_token';
5156
+ };
4931
5157
  /**
4932
5158
  * OAuth Provider data stored in MongoDB.
4933
5159
  * Represents the configuration for an OAuth 2.0 provider at the project level.
@@ -7349,6 +7575,7 @@ export type PublishProcessDefinitionPayload = {
7349
7575
  tags?: string[] | undefined;
7350
7576
  label?: string | undefined;
7351
7577
  comment?: string | undefined;
7578
+ idempotency_key?: string | undefined;
7352
7579
  };
7353
7580
  export type RevertProcessDefinitionPayload = {
7354
7581
  confirmed: boolean;
@@ -9765,6 +9992,7 @@ export type CreateAgentRunPayloadWire = {
9765
9992
  notify_endpoints?: string[] | undefined;
9766
9993
  debug_mode?: boolean | undefined;
9767
9994
  started_by?: string | undefined;
9995
+ idempotency_key?: string | undefined;
9768
9996
  };
9769
9997
  export type DSLActivitySpecWire = {
9770
9998
  name: string;
@@ -10191,9 +10419,6 @@ export type LegacyPopulatedExecutionRunResult = {
10191
10419
  conversation?: unknown | undefined;
10192
10420
  options?: StatelessExecutionOptions | undefined;
10193
10421
  };
10194
- export type ExecuteInteractionByEndpointQueryWire = {
10195
- tag?: string | undefined;
10196
- };
10197
10422
  export type ExecuteInteractionByEndpointHeadersWire = {
10198
10423
  'x-interaction-tag'?: string | undefined;
10199
10424
  };
@@ -10705,8 +10930,6 @@ export interface ApiComponentTypes {
10705
10930
  AccountApiKeyArray: AccountApiKeyArray;
10706
10931
  CreateAccountApiKeyPayload: CreateAccountApiKeyPayload;
10707
10932
  UpdateAccountApiKeyPayload: UpdateAccountApiKeyPayload;
10708
- ApiKeyReadResponse: ApiKeyReadResponseFromSchema;
10709
- ApiKeyReadQuery: ApiKeyReadQueryFromSchema;
10710
10933
  CreateApiKeyPayload: CreateApiKeyPayloadFromSchema;
10711
10934
  UpdateApiKeyPayload: UpdateApiKeyPayloadFromSchema;
10712
10935
  AuthTokenResponse: AuthTokenResponseFromSchema;
@@ -10748,6 +10971,7 @@ export interface ApiComponentTypes {
10748
10971
  AppCapabilities: AppCapabilities;
10749
10972
  AppAccessControl: AppAccessControl;
10750
10973
  AppSourceConfig: AppSourceConfig;
10974
+ AppGitSourceProvider: AppGitSourceProvider;
10751
10975
  AppManifestSource: AppManifestSource;
10752
10976
  SuccessResponse: SuccessResponse;
10753
10977
  OAuthProvider: OAuthProvider;
@@ -10785,6 +11009,11 @@ export interface ApiComponentTypes {
10785
11009
  OAuthDeviceAuthorizationRequest: OAuthDeviceAuthorizationRequest;
10786
11010
  OAuthDeviceAuthorizationResponse: OAuthDeviceAuthorizationResponse;
10787
11011
  OAuthTokenResponse: OAuthTokenResponse;
11012
+ OidcFederationConnectionPayload: OidcFederationConnectionPayload;
11013
+ OidcFederationConnection: OidcFederationConnection;
11014
+ OidcFederationConnectionArray: OidcFederationConnectionArray;
11015
+ OAuthTokenExchangeRequest: OAuthTokenExchangeRequest;
11016
+ OAuthTokenExchangeResponse: OAuthTokenExchangeResponse;
10788
11017
  OAuthClient: OAuthClient;
10789
11018
  OAuthClientArray: OAuthClientArray;
10790
11019
  OAuthClientCreateResponse: OAuthClientCreateResponse;
@@ -10993,6 +11222,7 @@ export interface ApiComponentTypes {
10993
11222
  ExecutionRunRefArray: ExecutionRunRefArray;
10994
11223
  UpdateExecutionRunPayload: UpdateExecutionRunPayload;
10995
11224
  RunCreatePayload: RunCreatePayload;
11225
+ GetRunQuery: GetRunQuery;
10996
11226
  SortOrder: SortOrder;
10997
11227
  SortOption: SortOption;
10998
11228
  RunSearchQuery: RunSearchQuery;
@@ -11009,7 +11239,8 @@ export interface ApiComponentTypes {
11009
11239
  InteractionExecutionConfiguration: InteractionExecutionConfiguration;
11010
11240
  InteractionExecutionError: InteractionExecutionError;
11011
11241
  ResultStorageOptions: ResultStorageOptions;
11012
- ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQueryWire;
11242
+ ExecuteNamedInteractionQuery: ExecuteNamedInteractionQuery;
11243
+ ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQuery;
11013
11244
  ExecuteInteractionByEndpointHeaders: ExecuteInteractionByEndpointHeadersWire;
11014
11245
  AsyncCompletionMode: AsyncCompletionMode;
11015
11246
  AsyncCompletionOptions: AsyncCompletionOptions;
@@ -11743,6 +11974,20 @@ export interface ApiComponentTypes {
11743
11974
  AppRepoBranch: AppRepoBranch;
11744
11975
  AppRepoDocumentCommit: AppRepoDocumentCommit;
11745
11976
  AppVersionGitSource: AppVersionGitSource;
11977
+ AppGithubConfiguration: AppGithubConfiguration;
11978
+ StartAppGithubAuthorizationResponse: StartAppGithubAuthorizationResponse;
11979
+ ExchangeAppGithubAuthorizationRequest: ExchangeAppGithubAuthorizationRequest;
11980
+ AppGithubRepositoriesQuery: AppGithubRepositoriesQuery;
11981
+ ExchangeAppGithubAuthorizationResponse: ExchangeAppGithubAuthorizationResponse;
11982
+ AppGithubInstallation: AppGithubInstallation;
11983
+ AppGithubAccount: AppGithubAccount;
11984
+ AppGithubRepository: AppGithubRepository;
11985
+ AppGithubRepositoryCreation: AppGithubRepositoryCreation;
11986
+ AppGithubRepositoryList: AppGithubRepositoryList;
11987
+ AppGithubRepositorySetupQuery: AppGithubRepositorySetupQuery;
11988
+ AppGithubBranchState: AppGithubBranchState;
11989
+ AppGithubRepositorySetup: AppGithubRepositorySetup;
11990
+ AppScaffoldSourceMode: AppScaffoldSourceMode;
11746
11991
  StartAppScaffoldRequest: StartAppScaffoldRequest;
11747
11992
  StartAppDevelopmentTaskRequest: StartAppDevelopmentTaskRequest;
11748
11993
  StartAppBuildRequest: StartAppBuildRequest;
@@ -11767,6 +12012,7 @@ export interface ApiComponentTypes {
11767
12012
  AgentRunSearchHit: AgentRunSearchHit;
11768
12013
  UpsertAppVersionRequest: UpsertAppVersionRequest;
11769
12014
  AppInstallationPayload: AppInstallationPayload;
12015
+ AppInstanceAvailability: AppInstanceAvailability;
11770
12016
  AppDevelopmentTaskDetails: AppDevelopmentTaskDetails;
11771
12017
  AppVersionRecordArray: AppVersionRecordArray;
11772
12018
  AppToolCollectionArray: AppToolCollectionArray;
@@ -11845,6 +12091,7 @@ export interface ApiComponentTypes {
11845
12091
  MCPOAuthConfigMap: MCPOAuthConfigMap;
11846
12092
  AppWidgetInfo: AppWidgetInfo;
11847
12093
  AppDashboardDefinition: AppDashboardDefinition;
12094
+ AppOAuthClientConfig: AppOAuthClientConfig;
11848
12095
  AppManifestData: AppManifestData;
11849
12096
  UpdateAppPayload: UpdateAppPayload;
11850
12097
  AppManifest: AppManifest;