@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
@@ -182,9 +182,6 @@ export type StripeBillingStatusResponseFromSchema = StripeBillingEnabled | Strip
182
182
  export type ApiKeyListQueryFromSchema = {
183
183
  level?: 'account' | 'project' | undefined;
184
184
  };
185
- export type ApiKeyReadQueryFromSchema = {
186
- withValue?: boolean | undefined;
187
- };
188
185
  export type ProjectRefArrayFromSchema = ProjectRef[];
189
186
  export type ApiKeyFromSchema = {
190
187
  id: string;
@@ -228,27 +225,6 @@ export type ApiKeyWithValueFromSchema = {
228
225
  compartments?: string[] | undefined;
229
226
  value: string;
230
227
  };
231
- export type ApiKeyReadResponseFromSchema = {
232
- id: string;
233
- name: string;
234
- type: (typeof ApiKeyTypes)['secret'];
235
- role: (typeof SystemRoles)[keyof typeof SystemRoles];
236
- maskedValue?: string | undefined;
237
- can_retrieve_value?: boolean | undefined;
238
- account: string;
239
- project: ProjectRef;
240
- enabled: boolean;
241
- scim_provisioning?: boolean | undefined;
242
- created_by: string;
243
- updated_by: string;
244
- created_at: string;
245
- updated_at: string;
246
- expires_at?: string | undefined;
247
- properties?: Record<string, unknown> | undefined;
248
- clearance?: number | undefined;
249
- compartments?: string[] | undefined;
250
- value?: string | undefined;
251
- };
252
228
  export type CreateApiKeyPayloadFromSchema = {
253
229
  name: string;
254
230
  role: (typeof SystemRoles)[keyof typeof SystemRoles];
@@ -475,10 +451,8 @@ export type ApiKeyArray = ApiKeyArrayFromSchema;
475
451
  export type CreateApiKeyPayload = CreateApiKeyPayloadFromSchema;
476
452
  export type UpdateApiKeyPayload = UpdateApiKeyPayloadFromSchema;
477
453
  export type ApiKeyWithValue = ApiKeyWithValueFromSchema;
478
- export type ApiKeyReadResponse = ApiKeyReadResponseFromSchema;
479
454
  export type AuthTokenResponse = AuthTokenResponseFromSchema;
480
455
  export type ApiKeyListQuery = ApiKeyListQueryFromSchema;
481
- export type ApiKeyReadQuery = ApiKeyReadQueryFromSchema;
482
456
  export type AccountApiKey = {
483
457
  id: string;
484
458
  name: string;
@@ -526,6 +500,9 @@ export type AppUIConfig = {
526
500
  navigation?: AppUINavItem[] | undefined;
527
501
  available_in?: AppAvailableIn[] | undefined;
528
502
  };
503
+ export type AppOAuthClientConfig = {
504
+ redirect_uris: string[];
505
+ };
529
506
  export type AppInstallationProjectsQuery = {
530
507
  name?: string | undefined;
531
508
  id?: string | undefined;
@@ -560,6 +537,8 @@ export type MCPToolCollectionObject = {
560
537
  url: string;
561
538
  auth?: ToolCollectionAuthType | undefined;
562
539
  type: 'mcp';
540
+ parameters?: Record<string, McpConnectionParameter> | undefined;
541
+ headers?: Record<string, string> | undefined;
563
542
  id: string;
564
543
  name: string;
565
544
  description: string;
@@ -781,6 +760,7 @@ export type AppBuildProgress = {
781
760
  updated_at: string;
782
761
  };
783
762
  export type AppScaffoldModule = 'service' | 'assistant' | 'content-app' | 'examples';
763
+ export type AppScaffoldSourceMode = 'generate' | 'existing';
784
764
  export type StartAppScaffoldRequest = {
785
765
  app_id: string;
786
766
  title?: string | undefined;
@@ -789,6 +769,10 @@ export type StartAppScaffoldRequest = {
789
769
  oauth_scopes?: string[] | undefined;
790
770
  appgen_package_spec?: string | undefined;
791
771
  create_version?: boolean | undefined;
772
+ source_mode?: AppScaffoldSourceMode | undefined;
773
+ source?: AppSourceConfig | undefined;
774
+ github_connection_id?: string | undefined;
775
+ github_repository_creation?: AppGithubRepositoryCreation | undefined;
792
776
  };
793
777
  export type StartAppScaffoldResponse = {
794
778
  workflow_id: string;
@@ -798,6 +782,69 @@ export type StartAppScaffoldResponse = {
798
782
  git_url?: string | undefined;
799
783
  create_version: boolean;
800
784
  };
785
+ export type AppGithubConfiguration = {
786
+ enabled: boolean;
787
+ app_slug?: string | undefined;
788
+ install_url?: string | undefined;
789
+ relay_url?: string | undefined;
790
+ };
791
+ export type StartAppGithubAuthorizationResponse = {
792
+ authorization_url: string;
793
+ };
794
+ export type ExchangeAppGithubAuthorizationRequest = {
795
+ code: string;
796
+ state: string;
797
+ };
798
+ export type AppGithubRepositoriesQuery = {
799
+ connection_id: string;
800
+ installation_id: string;
801
+ };
802
+ export type AppGithubInstallation = {
803
+ id: string;
804
+ account_login: string;
805
+ account_type?: string | undefined;
806
+ repository_selection: 'all' | 'selected';
807
+ };
808
+ export type AppGithubAccount = {
809
+ login: string;
810
+ account_type: string;
811
+ avatar_url?: string | undefined;
812
+ };
813
+ export type ExchangeAppGithubAuthorizationResponse = {
814
+ connection_id: string;
815
+ installations: AppGithubInstallation[];
816
+ accounts: AppGithubAccount[];
817
+ };
818
+ export type AppGithubRepository = {
819
+ name: string;
820
+ full_name: string;
821
+ private: boolean;
822
+ default_branch: string;
823
+ html_url: string;
824
+ };
825
+ export type AppGithubRepositoryCreation = {
826
+ name: string;
827
+ private?: boolean | undefined;
828
+ };
829
+ export type AppGithubRepositoryList = {
830
+ repositories: AppGithubRepository[];
831
+ };
832
+ export type AppGithubRepositorySetupQuery = {
833
+ connection_id: string;
834
+ installation_id: string;
835
+ repository: string;
836
+ branch: string;
837
+ };
838
+ export type AppGithubBranchState = {
839
+ name: string;
840
+ exists: boolean;
841
+ empty: boolean;
842
+ };
843
+ export type AppGithubRepositorySetup = {
844
+ default_branch: string;
845
+ branches: string[];
846
+ selected_branch: AppGithubBranchState;
847
+ };
801
848
  export type StartAppDevelopmentTaskRequest = {
802
849
  prompt: string;
803
850
  environment: string;
@@ -833,7 +880,9 @@ export type AppScaffoldProgress = {
833
880
  */
834
881
  export type AppAccessControl = 'all' | 'ui' | 'none';
835
882
  export type AppManifestData = {
883
+ parameters?: Record<string, McpConnectionParameter> | undefined;
836
884
  oauth_scopes?: string[] | undefined;
885
+ oauth_client?: AppOAuthClientConfig | undefined;
837
886
  name: string;
838
887
  visibility: 'public' | 'private' | 'vertesia';
839
888
  title: string;
@@ -860,7 +909,9 @@ export type AppManifestData = {
860
909
  access_control?: AppAccessControl | undefined;
861
910
  };
862
911
  export type UpdateAppPayload = {
912
+ parameters?: Record<string, McpConnectionParameter> | undefined;
863
913
  oauth_scopes?: string[] | undefined;
914
+ oauth_client?: AppOAuthClientConfig | undefined;
864
915
  name: string;
865
916
  visibility: 'public' | 'private' | 'vertesia';
866
917
  title: string;
@@ -888,11 +939,15 @@ export type UpdateAppPayload = {
888
939
  expected_edit_revision?: number | undefined;
889
940
  };
890
941
  export type AppGitSourceConfig = {
942
+ provider?: AppGitSourceProvider | undefined;
891
943
  url?: string | undefined;
944
+ installation_id?: string | undefined;
945
+ repository?: string | undefined;
892
946
  default_branch?: string | undefined;
893
947
  production_branch?: string | undefined;
894
948
  development_branch?: string | undefined;
895
949
  };
950
+ export type AppGitSourceProvider = 'vertesia' | 'github';
896
951
  export type AppSourceConfig = {
897
952
  kind: 'git';
898
953
  git?: AppGitSourceConfig | undefined;
@@ -1032,6 +1087,7 @@ export type AppEventSubscriptionDefinition = {
1032
1087
  priority?: EventPriority | undefined;
1033
1088
  };
1034
1089
  export type AppPackage = {
1090
+ oauth_client?: AppOAuthClientConfig | undefined;
1035
1091
  oauth_scopes?: string[] | undefined;
1036
1092
  ui?: AppUIConfig | undefined;
1037
1093
  tools?: AgentToolDefinition[] | undefined;
@@ -1113,7 +1169,9 @@ export type RenderingTemplateDefinitionRef = {
1113
1169
  tags?: string[] | undefined;
1114
1170
  };
1115
1171
  export type AppManifest = {
1172
+ parameters?: Record<string, McpConnectionParameter> | undefined;
1116
1173
  oauth_scopes?: string[] | undefined;
1174
+ oauth_client?: AppOAuthClientConfig | undefined;
1117
1175
  edit_revision: number;
1118
1176
  name: string;
1119
1177
  visibility: 'public' | 'private' | 'vertesia';
@@ -1147,7 +1205,10 @@ export type AppManifest = {
1147
1205
  export type AppManifestSource = {
1148
1206
  kind: 'git';
1149
1207
  git: {
1208
+ provider?: AppGitSourceProvider | undefined;
1150
1209
  url: string;
1210
+ installation_id?: string | undefined;
1211
+ repository?: string | undefined;
1151
1212
  default_branch?: string | undefined;
1152
1213
  production_branch?: string | undefined;
1153
1214
  development_branch?: string | undefined;
@@ -1176,12 +1237,26 @@ export type AppInstallationProviderBinding = {
1176
1237
  export type AppInstallation = {
1177
1238
  id: string;
1178
1239
  project: string;
1240
+ instance_key?: string | undefined;
1241
+ display_name?: string | undefined;
1242
+ installation_version?: 1 | undefined;
1243
+ namespace_overrides?: Record<string, string> | undefined;
1244
+ reserved_namespaces?: string[] | undefined;
1245
+ namespace_conflicts?: string[] | undefined;
1179
1246
  manifest: string;
1247
+ mcp_configuration?: {
1248
+ revision: string;
1249
+ values: Record<string, Record<string, string>>;
1250
+ configured_secrets: Record<string, string[]>;
1251
+ shared_values?: Record<string, string> | undefined;
1252
+ configured_shared_secrets?: string[] | undefined;
1253
+ } | undefined;
1180
1254
  oauth_approval?: {
1181
1255
  scopes: string[];
1182
1256
  approved_by: string;
1183
1257
  approved_at: string;
1184
1258
  } | undefined;
1259
+ oauth_client_id?: string | undefined;
1185
1260
  settings?: {
1186
1261
  [k: string]: unknown;
1187
1262
  } | undefined;
@@ -1195,11 +1270,25 @@ export type AppInstallation = {
1195
1270
  export type AppInstallationWithManifest = {
1196
1271
  id: string;
1197
1272
  project: string;
1273
+ instance_key?: string | undefined;
1274
+ display_name?: string | undefined;
1275
+ installation_version?: 1 | undefined;
1276
+ namespace_overrides?: Record<string, string> | undefined;
1277
+ reserved_namespaces?: string[] | undefined;
1278
+ namespace_conflicts?: string[] | undefined;
1279
+ mcp_configuration?: {
1280
+ revision: string;
1281
+ values: Record<string, Record<string, string>>;
1282
+ configured_secrets: Record<string, string[]>;
1283
+ shared_values?: Record<string, string> | undefined;
1284
+ configured_shared_secrets?: string[] | undefined;
1285
+ } | undefined;
1198
1286
  oauth_approval?: {
1199
1287
  scopes: string[];
1200
1288
  approved_by: string;
1201
1289
  approved_at: string;
1202
1290
  } | undefined;
1291
+ oauth_client_id?: string | undefined;
1203
1292
  settings?: {
1204
1293
  [k: string]: unknown;
1205
1294
  } | undefined;
@@ -1215,11 +1304,25 @@ export type AppInstallationWithManifest = {
1215
1304
  export type AppInstallationListEntry = {
1216
1305
  id: string;
1217
1306
  project: string;
1307
+ instance_key?: string | undefined;
1308
+ display_name?: string | undefined;
1309
+ installation_version?: 1 | undefined;
1310
+ namespace_overrides?: Record<string, string> | undefined;
1311
+ reserved_namespaces?: string[] | undefined;
1312
+ namespace_conflicts?: string[] | undefined;
1313
+ mcp_configuration?: {
1314
+ revision: string;
1315
+ values: Record<string, Record<string, string>>;
1316
+ configured_secrets: Record<string, string[]>;
1317
+ shared_values?: Record<string, string> | undefined;
1318
+ configured_shared_secrets?: string[] | undefined;
1319
+ } | undefined;
1218
1320
  oauth_approval?: {
1219
1321
  scopes: string[];
1220
1322
  approved_by: string;
1221
1323
  approved_at: string;
1222
1324
  } | undefined;
1325
+ oauth_client_id?: string | undefined;
1223
1326
  settings?: {
1224
1327
  [k: string]: unknown;
1225
1328
  } | undefined;
@@ -1251,6 +1354,11 @@ export type AppApiKeyCollectionParams = {
1251
1354
  export type AppOAuthProviderParams = AppOAuthCollectionParams;
1252
1355
  export type AppInstallationPayload = {
1253
1356
  app_id: string;
1357
+ instance_key?: string | undefined;
1358
+ display_name?: string | undefined;
1359
+ namespace_overrides?: Record<string, string> | undefined;
1360
+ mcp_shared_parameters?: Record<string, string | null> | undefined;
1361
+ mcp_parameters?: Record<string, Record<string, string | null>> | undefined;
1254
1362
  settings?: {
1255
1363
  [k: string]: unknown;
1256
1364
  } | undefined;
@@ -1268,6 +1376,7 @@ export type AppInstallationKind = 'ui' | 'tools' | 'all';
1268
1376
  */
1269
1377
  export type AppToolCollection = {
1270
1378
  name: string;
1379
+ collection_id?: string | undefined;
1271
1380
  description?: string | undefined;
1272
1381
  tools: AgentToolDefinition[];
1273
1382
  };
@@ -1534,6 +1643,23 @@ export type AppDeleteSummary = {
1534
1643
  export type UpdateAppInstallationOAuthApprovalPayload = {
1535
1644
  approved_scopes: string[];
1536
1645
  };
1646
+ export type AppInstanceAvailability = {
1647
+ enabled: boolean;
1648
+ };
1649
+ export type McpPublicParameter = {
1650
+ title?: string | undefined;
1651
+ description?: string | undefined;
1652
+ required?: boolean | undefined;
1653
+ type?: 'string' | undefined;
1654
+ default?: string | undefined;
1655
+ };
1656
+ export type McpSecretParameter = {
1657
+ title?: string | undefined;
1658
+ description?: string | undefined;
1659
+ required?: boolean | undefined;
1660
+ type: 'secret';
1661
+ };
1662
+ export type McpConnectionParameter = McpPublicParameter | McpSecretParameter;
1537
1663
  /**
1538
1664
  * Generic metering entry attached to audit events.
1539
1665
  * Used for cost attribution, usage tracking, and billing.
@@ -3643,6 +3769,16 @@ export type CatalogInteractionRef = {
3643
3769
  title: string;
3644
3770
  description?: string | undefined;
3645
3771
  };
3772
+ export type ExecuteNamedInteractionQuery = {
3773
+ include_prompt?: boolean | undefined;
3774
+ };
3775
+ export type GetRunQuery = {
3776
+ include_prompt?: boolean | undefined;
3777
+ };
3778
+ export type ExecuteInteractionByEndpointQuery = {
3779
+ tag?: string | undefined;
3780
+ include_prompt?: boolean | undefined;
3781
+ };
3646
3782
  export type ResolveInteractionQuery = {
3647
3783
  environment?: string | undefined;
3648
3784
  model?: string | undefined;
@@ -3988,6 +4124,7 @@ export type AsyncConversationExecutionPayload = {
3988
4124
  asyncCompletion?: AsyncCompletionOptions | undefined;
3989
4125
  type: 'conversation';
3990
4126
  notify_endpoints?: string[] | undefined;
4127
+ idempotency_key?: string | undefined;
3991
4128
  task_queue?: string | undefined;
3992
4129
  tool_approval_mode?: AgentToolApprovalMode | undefined;
3993
4130
  visibility?: ConversationVisibility | undefined;
@@ -4383,8 +4520,8 @@ export type OAuthClientType = 'public' | 'confidential';
4383
4520
  export type OAuthClientStatus = 'active' | 'disabled';
4384
4521
  export type OAuthRegistrationSource = 'admin' | 'dynamic';
4385
4522
  export type OAuthProjectBindingMode = 'user_select' | 'fixed';
4386
- export type OAuthTokenEndpointAuthMethod = 'none' | 'client_secret_post' | 'client_secret_basic';
4387
- export type OAuthGrantType = 'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:device_code';
4523
+ export type OAuthTokenEndpointAuthMethod = 'none' | 'client_secret_post' | 'client_secret_basic' | 'private_key_jwt';
4524
+ export type OAuthGrantType = 'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:device_code' | 'urn:ietf:params:oauth:grant-type:token-exchange';
4388
4525
  export type OAuthResponseType = 'code';
4389
4526
  export type OAuthAuthorizationRequestStatus = 'pending' | 'denied' | 'consumed';
4390
4527
  export type OAuthClientRegistrationMode = 'registered' | 'client_id_metadata_document';
@@ -4393,12 +4530,14 @@ export type OAuthGrantSortField = 'granted_at' | 'client_name' | 'user_name' | '
4393
4530
  export type OAuthGrantSortOrder = 'asc' | 'desc';
4394
4531
  /** An OAuth client's registration, without the id the server issues for it. */
4395
4532
  export type OAuthClientData = {
4533
+ app_id?: string | undefined;
4396
4534
  client_name: string;
4397
4535
  client_type: OAuthClientType;
4398
4536
  redirect_uris: string[];
4399
4537
  grant_types: OAuthGrantType[];
4400
4538
  response_types: OAuthResponseType[];
4401
4539
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4540
+ jwks_uri?: string | undefined;
4402
4541
  allowed_scopes: string[];
4403
4542
  default_scopes?: string[] | undefined;
4404
4543
  registration_source: OAuthRegistrationSource;
@@ -4415,12 +4554,14 @@ export type OAuthClientData = {
4415
4554
  updated_at: string;
4416
4555
  };
4417
4556
  export type OAuthClient = {
4557
+ app_id?: string | undefined;
4418
4558
  client_name: string;
4419
4559
  client_type: OAuthClientType;
4420
4560
  redirect_uris: string[];
4421
4561
  grant_types: OAuthGrantType[];
4422
4562
  response_types: OAuthResponseType[];
4423
4563
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4564
+ jwks_uri?: string | undefined;
4424
4565
  allowed_scopes: string[];
4425
4566
  default_scopes?: string[] | undefined;
4426
4567
  registration_source: OAuthRegistrationSource;
@@ -4439,12 +4580,14 @@ export type OAuthClient = {
4439
4580
  };
4440
4581
  /** The read shape plus the client secret, which is returned by the create call and never again. */
4441
4582
  export type OAuthClientCreateResponse = {
4583
+ app_id?: string | undefined;
4442
4584
  client_name: string;
4443
4585
  client_type: OAuthClientType;
4444
4586
  redirect_uris: string[];
4445
4587
  grant_types: OAuthGrantType[];
4446
4588
  response_types: OAuthResponseType[];
4447
4589
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4590
+ jwks_uri?: string | undefined;
4448
4591
  allowed_scopes: string[];
4449
4592
  default_scopes?: string[] | undefined;
4450
4593
  registration_source: OAuthRegistrationSource;
@@ -4530,6 +4673,7 @@ export type CreateOAuthClientPayload = {
4530
4673
  grant_types?: OAuthGrantType[] | undefined;
4531
4674
  response_types?: OAuthResponseType[] | undefined;
4532
4675
  token_endpoint_auth_method?: OAuthTokenEndpointAuthMethod | undefined;
4676
+ jwks_uri?: string | undefined;
4533
4677
  allowed_scopes?: string[] | undefined;
4534
4678
  default_scopes?: string[] | undefined;
4535
4679
  project_binding_mode?: OAuthProjectBindingMode | undefined;
@@ -4546,9 +4690,11 @@ export type UpdateOAuthClientPayload = {
4546
4690
  grant_types?: OAuthGrantType[] | undefined;
4547
4691
  response_types?: OAuthResponseType[] | undefined;
4548
4692
  token_endpoint_auth_method?: OAuthTokenEndpointAuthMethod | undefined;
4693
+ jwks_uri?: string | undefined;
4549
4694
  allowed_scopes?: string[] | undefined;
4550
4695
  default_scopes?: string[] | undefined;
4551
4696
  status?: OAuthClientStatus | undefined;
4697
+ revoke_previous_client_secret?: boolean | undefined;
4552
4698
  project_binding_mode?: OAuthProjectBindingMode | undefined;
4553
4699
  fixed_project_id?: string | undefined;
4554
4700
  restrict_to_owner_account?: boolean | undefined;
@@ -4568,6 +4714,7 @@ export type OAuthAuthorizationServerMetadata = {
4568
4714
  grant_types_supported: string[];
4569
4715
  code_challenge_methods_supported: string[];
4570
4716
  token_endpoint_auth_methods_supported: string[];
4717
+ token_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
4571
4718
  scopes_supported: string[];
4572
4719
  client_id_metadata_document_supported?: boolean | undefined;
4573
4720
  authorization_response_iss_parameter_supported?: boolean | undefined;
@@ -4608,6 +4755,7 @@ export type OAuthAuthorizationRequest = {
4608
4755
  user_code?: string | undefined;
4609
4756
  client_id: string;
4610
4757
  client_name: string;
4758
+ app_id?: string | undefined;
4611
4759
  client_metadata?: OAuthClientDisplayMetadata | undefined;
4612
4760
  client_registration_mode?: OAuthClientRegistrationMode | undefined;
4613
4761
  redirect_uri: string;
@@ -4681,6 +4829,64 @@ export type OAuthLoginUserNotFoundResponse = {
4681
4829
  error: 'user_not_found';
4682
4830
  ensure_user_url: string;
4683
4831
  };
4832
+ export type OidcFederationConnectionPayload = {
4833
+ name: string;
4834
+ issuer: string;
4835
+ jwks_uri?: string | undefined;
4836
+ external_id_claim: string;
4837
+ allowed_audiences: string[];
4838
+ allowed_algorithms: ('RS256' | 'ES256')[];
4839
+ subject_token_type: 'urn:ietf:params:oauth:token-type:jwt' | 'urn:ietf:params:oauth:token-type:id_token' | 'urn:ietf:params:oauth:token-type:access_token';
4840
+ required_claims?: Record<string, string> | undefined;
4841
+ all_projects?: boolean | undefined;
4842
+ allowed_project_ids: string[];
4843
+ allowed_client_ids?: string[] | undefined;
4844
+ allowed_scopes?: string[] | undefined;
4845
+ max_token_ttl_seconds: number;
4846
+ max_subject_token_age_seconds?: number | undefined;
4847
+ enabled: boolean;
4848
+ };
4849
+ export type OidcFederationConnection = {
4850
+ name: string;
4851
+ issuer: string;
4852
+ jwks_uri?: string | undefined;
4853
+ external_id_claim: string;
4854
+ allowed_audiences: string[];
4855
+ allowed_algorithms: ('RS256' | 'ES256')[];
4856
+ subject_token_type: 'urn:ietf:params:oauth:token-type:jwt' | 'urn:ietf:params:oauth:token-type:id_token' | 'urn:ietf:params:oauth:token-type:access_token';
4857
+ required_claims?: Record<string, string> | undefined;
4858
+ all_projects?: boolean | undefined;
4859
+ allowed_project_ids: string[];
4860
+ allowed_client_ids?: string[] | undefined;
4861
+ allowed_scopes?: string[] | undefined;
4862
+ max_token_ttl_seconds: number;
4863
+ max_subject_token_age_seconds: number;
4864
+ enabled: boolean;
4865
+ id: string;
4866
+ account_id: string;
4867
+ };
4868
+ export type OidcFederationConnectionArray = OidcFederationConnection[];
4869
+ export type OAuthTokenExchangeRequest = {
4870
+ grant_type: 'urn:ietf:params:oauth:grant-type:token-exchange';
4871
+ subject_token: string;
4872
+ subject_token_type: 'urn:ietf:params:oauth:token-type:jwt' | 'urn:ietf:params:oauth:token-type:id_token' | 'urn:ietf:params:oauth:token-type:access_token';
4873
+ requested_token_type?: 'urn:ietf:params:oauth:token-type:access_token' | undefined;
4874
+ federation_connection_id: string;
4875
+ client_id?: string | undefined;
4876
+ client_secret?: string | undefined;
4877
+ client_assertion?: string | undefined;
4878
+ client_assertion_type?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer' | undefined;
4879
+ project_id: string;
4880
+ resource: string;
4881
+ scope?: string | undefined;
4882
+ };
4883
+ export type OAuthTokenExchangeResponse = {
4884
+ access_token: string;
4885
+ token_type: 'Bearer';
4886
+ expires_in: number;
4887
+ scope?: string | undefined;
4888
+ issued_token_type: 'urn:ietf:params:oauth:token-type:access_token';
4889
+ };
4684
4890
  /**
4685
4891
  * OAuth Provider data stored in MongoDB.
4686
4892
  * Represents the configuration for an OAuth 2.0 provider at the project level.
@@ -6950,6 +7156,7 @@ export type PublishProcessDefinitionPayload = {
6950
7156
  tags?: string[] | undefined;
6951
7157
  label?: string | undefined;
6952
7158
  comment?: string | undefined;
7159
+ idempotency_key?: string | undefined;
6953
7160
  };
6954
7161
  export type RevertProcessDefinitionPayload = {
6955
7162
  confirmed: boolean;
@@ -9215,6 +9422,7 @@ export type CreateAgentRunPayloadWire = {
9215
9422
  notify_endpoints?: string[] | undefined;
9216
9423
  debug_mode?: boolean | undefined;
9217
9424
  started_by?: string | undefined;
9425
+ idempotency_key?: string | undefined;
9218
9426
  };
9219
9427
  export type DSLActivitySpecWire = {
9220
9428
  name: string;
@@ -9609,9 +9817,6 @@ export type LegacyPopulatedExecutionRunResult = {
9609
9817
  conversation?: unknown | undefined;
9610
9818
  options?: StatelessExecutionOptions | undefined;
9611
9819
  };
9612
- export type ExecuteInteractionByEndpointQueryWire = {
9613
- tag?: string | undefined;
9614
- };
9615
9820
  export type ExecuteInteractionByEndpointHeadersWire = {
9616
9821
  'x-interaction-tag'?: string | undefined;
9617
9822
  };
@@ -10041,8 +10246,6 @@ export interface ApiComponentTypes {
10041
10246
  AccountApiKeyArray: AccountApiKeyArray;
10042
10247
  CreateAccountApiKeyPayload: CreateAccountApiKeyPayload;
10043
10248
  UpdateAccountApiKeyPayload: UpdateAccountApiKeyPayload;
10044
- ApiKeyReadResponse: ApiKeyReadResponseFromSchema;
10045
- ApiKeyReadQuery: ApiKeyReadQueryFromSchema;
10046
10249
  CreateApiKeyPayload: CreateApiKeyPayloadFromSchema;
10047
10250
  UpdateApiKeyPayload: UpdateApiKeyPayloadFromSchema;
10048
10251
  AuthTokenResponse: AuthTokenResponseFromSchema;
@@ -10084,6 +10287,7 @@ export interface ApiComponentTypes {
10084
10287
  AppCapabilities: AppCapabilities;
10085
10288
  AppAccessControl: AppAccessControl;
10086
10289
  AppSourceConfig: AppSourceConfig;
10290
+ AppGitSourceProvider: AppGitSourceProvider;
10087
10291
  AppManifestSource: AppManifestSource;
10088
10292
  SuccessResponse: SuccessResponse;
10089
10293
  OAuthProvider: OAuthProvider;
@@ -10121,6 +10325,11 @@ export interface ApiComponentTypes {
10121
10325
  OAuthDeviceAuthorizationRequest: OAuthDeviceAuthorizationRequest;
10122
10326
  OAuthDeviceAuthorizationResponse: OAuthDeviceAuthorizationResponse;
10123
10327
  OAuthTokenResponse: OAuthTokenResponse;
10328
+ OidcFederationConnectionPayload: OidcFederationConnectionPayload;
10329
+ OidcFederationConnection: OidcFederationConnection;
10330
+ OidcFederationConnectionArray: OidcFederationConnectionArray;
10331
+ OAuthTokenExchangeRequest: OAuthTokenExchangeRequest;
10332
+ OAuthTokenExchangeResponse: OAuthTokenExchangeResponse;
10124
10333
  OAuthClient: OAuthClient;
10125
10334
  OAuthClientArray: OAuthClientArray;
10126
10335
  OAuthClientCreateResponse: OAuthClientCreateResponse;
@@ -10327,6 +10536,7 @@ export interface ApiComponentTypes {
10327
10536
  ExecutionRunRefArray: ExecutionRunRefArray;
10328
10537
  UpdateExecutionRunPayload: UpdateExecutionRunPayload;
10329
10538
  RunCreatePayload: RunCreatePayload;
10539
+ GetRunQuery: GetRunQuery;
10330
10540
  SortOrder: SortOrder;
10331
10541
  SortOption: SortOption;
10332
10542
  RunSearchQuery: RunSearchQuery;
@@ -10343,7 +10553,8 @@ export interface ApiComponentTypes {
10343
10553
  InteractionExecutionConfiguration: InteractionExecutionConfiguration;
10344
10554
  InteractionExecutionError: InteractionExecutionError;
10345
10555
  ResultStorageOptions: ResultStorageOptions;
10346
- ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQueryWire;
10556
+ ExecuteNamedInteractionQuery: ExecuteNamedInteractionQuery;
10557
+ ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQuery;
10347
10558
  ExecuteInteractionByEndpointHeaders: ExecuteInteractionByEndpointHeadersWire;
10348
10559
  AsyncCompletionMode: AsyncCompletionMode;
10349
10560
  AsyncCompletionOptions: AsyncCompletionOptions;
@@ -11077,6 +11288,20 @@ export interface ApiComponentTypes {
11077
11288
  AppRepoBranch: AppRepoBranch;
11078
11289
  AppRepoDocumentCommit: AppRepoDocumentCommit;
11079
11290
  AppVersionGitSource: AppVersionGitSource;
11291
+ AppGithubConfiguration: AppGithubConfiguration;
11292
+ StartAppGithubAuthorizationResponse: StartAppGithubAuthorizationResponse;
11293
+ ExchangeAppGithubAuthorizationRequest: ExchangeAppGithubAuthorizationRequest;
11294
+ AppGithubRepositoriesQuery: AppGithubRepositoriesQuery;
11295
+ ExchangeAppGithubAuthorizationResponse: ExchangeAppGithubAuthorizationResponse;
11296
+ AppGithubInstallation: AppGithubInstallation;
11297
+ AppGithubAccount: AppGithubAccount;
11298
+ AppGithubRepository: AppGithubRepository;
11299
+ AppGithubRepositoryCreation: AppGithubRepositoryCreation;
11300
+ AppGithubRepositoryList: AppGithubRepositoryList;
11301
+ AppGithubRepositorySetupQuery: AppGithubRepositorySetupQuery;
11302
+ AppGithubBranchState: AppGithubBranchState;
11303
+ AppGithubRepositorySetup: AppGithubRepositorySetup;
11304
+ AppScaffoldSourceMode: AppScaffoldSourceMode;
11080
11305
  StartAppScaffoldRequest: StartAppScaffoldRequest;
11081
11306
  StartAppDevelopmentTaskRequest: StartAppDevelopmentTaskRequest;
11082
11307
  StartAppBuildRequest: StartAppBuildRequest;
@@ -11101,6 +11326,7 @@ export interface ApiComponentTypes {
11101
11326
  AgentRunSearchHit: AgentRunSearchHit;
11102
11327
  UpsertAppVersionRequest: UpsertAppVersionRequest;
11103
11328
  AppInstallationPayload: AppInstallationPayload;
11329
+ AppInstanceAvailability: AppInstanceAvailability;
11104
11330
  AppDevelopmentTaskDetails: AppDevelopmentTaskDetails;
11105
11331
  AppVersionRecordArray: AppVersionRecordArray;
11106
11332
  AppToolCollectionArray: AppToolCollectionArray;
@@ -11179,6 +11405,7 @@ export interface ApiComponentTypes {
11179
11405
  MCPOAuthConfigMap: MCPOAuthConfigMap;
11180
11406
  AppWidgetInfo: AppWidgetInfo;
11181
11407
  AppDashboardDefinition: AppDashboardDefinition;
11408
+ AppOAuthClientConfig: AppOAuthClientConfig;
11182
11409
  AppManifestData: AppManifestData;
11183
11410
  UpdateAppPayload: UpdateAppPayload;
11184
11411
  AppManifest: AppManifest;