@vertesia/common 1.6.0-dev.20261009.095813Z → 1.6.0-dev.20261019.172735Z

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 (133) hide show
  1. package/lib/api-contract/components.generated.json +1329 -37
  2. package/lib/api-schemas/agent-runs.d.ts +410 -0
  3. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  4. package/lib/api-schemas/agent-runs.js +10 -3
  5. package/lib/api-schemas/agent-runs.js.map +1 -1
  6. package/lib/api-schemas/app-lifecycle.d.ts +126 -0
  7. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
  8. package/lib/api-schemas/app-lifecycle.js +134 -1
  9. package/lib/api-schemas/app-lifecycle.js.map +1 -1
  10. package/lib/api-schemas/app-runtime.d.ts +948 -6
  11. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  12. package/lib/api-schemas/app-runtime.js +50 -1
  13. package/lib/api-schemas/app-runtime.js.map +1 -1
  14. package/lib/api-schemas/apps.d.ts +73 -0
  15. package/lib/api-schemas/apps.d.ts.map +1 -1
  16. package/lib/api-schemas/apps.js +41 -0
  17. package/lib/api-schemas/apps.js.map +1 -1
  18. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  19. package/lib/api-schemas/audit-trail.js +5 -5
  20. package/lib/api-schemas/audit-trail.js.map +1 -1
  21. package/lib/api-schemas/content.d.ts +199 -0
  22. package/lib/api-schemas/content.d.ts.map +1 -1
  23. package/lib/api-schemas/content.js +19 -5
  24. package/lib/api-schemas/content.js.map +1 -1
  25. package/lib/api-schemas/data-store.d.ts +30 -0
  26. package/lib/api-schemas/data-store.d.ts.map +1 -1
  27. package/lib/api-schemas/data-store.js +8 -0
  28. package/lib/api-schemas/data-store.js.map +1 -1
  29. package/lib/api-schemas/document-processing.d.ts +117 -0
  30. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  31. package/lib/api-schemas/events.d.ts +351 -0
  32. package/lib/api-schemas/events.d.ts.map +1 -1
  33. package/lib/api-schemas/indexing.d.ts +1 -0
  34. package/lib/api-schemas/indexing.d.ts.map +1 -1
  35. package/lib/api-schemas/indexing.js +9 -0
  36. package/lib/api-schemas/indexing.js.map +1 -1
  37. package/lib/api-schemas/inference-profile.d.ts +234 -0
  38. package/lib/api-schemas/inference-profile.d.ts.map +1 -1
  39. package/lib/api-schemas/interaction.d.ts +3013 -0
  40. package/lib/api-schemas/interaction.d.ts.map +1 -1
  41. package/lib/api-schemas/interaction.js +9 -7
  42. package/lib/api-schemas/interaction.js.map +1 -1
  43. package/lib/api-schemas/oauth-server.d.ts +128 -0
  44. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  45. package/lib/api-schemas/oauth-server.js +95 -2
  46. package/lib/api-schemas/oauth-server.js.map +1 -1
  47. package/lib/api-schemas/process.d.ts +81 -0
  48. package/lib/api-schemas/process.d.ts.map +1 -1
  49. package/lib/api-schemas/process.js +29 -0
  50. package/lib/api-schemas/process.js.map +1 -1
  51. package/lib/api-schemas/project-configuration.d.ts +390 -0
  52. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  53. package/lib/api-schemas/project.d.ts +591 -6
  54. package/lib/api-schemas/project.d.ts.map +1 -1
  55. package/lib/api-schemas/prompt.d.ts.map +1 -1
  56. package/lib/api-schemas/prompt.js +5 -2
  57. package/lib/api-schemas/prompt.js.map +1 -1
  58. package/lib/api-schemas/registry.d.ts +23032 -461
  59. package/lib/api-schemas/registry.d.ts.map +1 -1
  60. package/lib/api-schemas/registry.js +38 -3
  61. package/lib/api-schemas/registry.js.map +1 -1
  62. package/lib/api-schemas/schema-primitives.d.ts +8 -0
  63. package/lib/api-schemas/schema-primitives.d.ts.map +1 -1
  64. package/lib/api-schemas/schema-primitives.js +8 -0
  65. package/lib/api-schemas/schema-primitives.js.map +1 -1
  66. package/lib/api-schemas/store.d.ts +1950 -0
  67. package/lib/api-schemas/store.d.ts.map +1 -1
  68. package/lib/api-schemas/store.js +3 -3
  69. package/lib/api-schemas/store.js.map +1 -1
  70. package/lib/api-schemas/task.d.ts.map +1 -1
  71. package/lib/api-schemas/task.js +3 -2
  72. package/lib/api-schemas/task.js.map +1 -1
  73. package/lib/api-schemas/workflow-runs.d.ts +78 -0
  74. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  75. package/lib/apikey.d.ts +7 -0
  76. package/lib/apikey.d.ts.map +1 -1
  77. package/lib/apikey.js.map +1 -1
  78. package/lib/apps.d.ts +37 -1
  79. package/lib/apps.d.ts.map +1 -1
  80. package/lib/apps.js +74 -3
  81. package/lib/apps.js.map +1 -1
  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 +20 -2
  92. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  93. package/lib/store/store.d.ts +1 -0
  94. package/lib/store/store.d.ts.map +1 -1
  95. package/lib/store/store.js.map +1 -1
  96. package/lib/store/text-limits.d.ts +18 -0
  97. package/lib/store/text-limits.d.ts.map +1 -0
  98. package/lib/store/text-limits.js +56 -0
  99. package/lib/store/text-limits.js.map +1 -0
  100. package/lib/vertesia-common.js +4 -2
  101. package/lib/vertesia-common.js.map +1 -1
  102. package/lib/wire-types.generated.d.ts +261 -3
  103. package/lib/wire-types.generated.d.ts.map +1 -1
  104. package/lib/workflow-analytics.d.ts +19 -1
  105. package/lib/workflow-analytics.d.ts.map +1 -1
  106. package/package.json +6 -6
  107. package/src/api-contract/components.generated.json +1329 -37
  108. package/src/api-schemas/agent-runs.ts +10 -3
  109. package/src/api-schemas/app-lifecycle.ts +163 -1
  110. package/src/api-schemas/app-runtime.ts +54 -0
  111. package/src/api-schemas/apps.ts +46 -0
  112. package/src/api-schemas/audit-trail.ts +5 -5
  113. package/src/api-schemas/content.ts +21 -5
  114. package/src/api-schemas/data-store.ts +8 -0
  115. package/src/api-schemas/indexing.ts +10 -0
  116. package/src/api-schemas/interaction.ts +9 -7
  117. package/src/api-schemas/oauth-server.ts +103 -2
  118. package/src/api-schemas/process.ts +32 -0
  119. package/src/api-schemas/prompt.ts +5 -2
  120. package/src/api-schemas/registry.ts +59 -6
  121. package/src/api-schemas/schema-primitives.ts +9 -0
  122. package/src/api-schemas/store.ts +3 -3
  123. package/src/api-schemas/task.ts +3 -2
  124. package/src/apikey.ts +8 -0
  125. package/src/apps.ts +116 -3
  126. package/src/interaction.ts +1 -0
  127. package/src/oauth-server.ts +10 -0
  128. package/src/store/index.ts +1 -0
  129. package/src/store/intake-policy-schema.generated.ts +20 -2
  130. package/src/store/store.ts +2 -0
  131. package/src/store/text-limits.ts +64 -0
  132. package/src/wire-types.generated.ts +285 -3
  133. package/src/workflow-analytics.ts +21 -1
@@ -526,6 +526,9 @@ export type AppUIConfig = {
526
526
  navigation?: AppUINavItem[] | undefined;
527
527
  available_in?: AppAvailableIn[] | undefined;
528
528
  };
529
+ export type AppOAuthClientConfig = {
530
+ redirect_uris: string[];
531
+ };
529
532
  export type AppInstallationProjectsQuery = {
530
533
  name?: string | undefined;
531
534
  id?: string | undefined;
@@ -560,6 +563,8 @@ export type MCPToolCollectionObject = {
560
563
  url: string;
561
564
  auth?: ToolCollectionAuthType | undefined;
562
565
  type: 'mcp';
566
+ parameters?: Record<string, McpConnectionParameter> | undefined;
567
+ headers?: Record<string, string> | undefined;
563
568
  id: string;
564
569
  name: string;
565
570
  description: string;
@@ -781,6 +786,7 @@ export type AppBuildProgress = {
781
786
  updated_at: string;
782
787
  };
783
788
  export type AppScaffoldModule = 'service' | 'assistant' | 'content-app' | 'examples';
789
+ export type AppScaffoldSourceMode = 'generate' | 'existing';
784
790
  export type StartAppScaffoldRequest = {
785
791
  app_id: string;
786
792
  title?: string | undefined;
@@ -789,6 +795,10 @@ export type StartAppScaffoldRequest = {
789
795
  oauth_scopes?: string[] | undefined;
790
796
  appgen_package_spec?: string | undefined;
791
797
  create_version?: boolean | undefined;
798
+ source_mode?: AppScaffoldSourceMode | undefined;
799
+ source?: AppSourceConfig | undefined;
800
+ github_connection_id?: string | undefined;
801
+ github_repository_creation?: AppGithubRepositoryCreation | undefined;
792
802
  };
793
803
  export type StartAppScaffoldResponse = {
794
804
  workflow_id: string;
@@ -798,6 +808,69 @@ export type StartAppScaffoldResponse = {
798
808
  git_url?: string | undefined;
799
809
  create_version: boolean;
800
810
  };
811
+ export type AppGithubConfiguration = {
812
+ enabled: boolean;
813
+ app_slug?: string | undefined;
814
+ install_url?: string | undefined;
815
+ relay_url?: string | undefined;
816
+ };
817
+ export type StartAppGithubAuthorizationResponse = {
818
+ authorization_url: string;
819
+ };
820
+ export type ExchangeAppGithubAuthorizationRequest = {
821
+ code: string;
822
+ state: string;
823
+ };
824
+ export type AppGithubRepositoriesQuery = {
825
+ connection_id: string;
826
+ installation_id: string;
827
+ };
828
+ export type AppGithubInstallation = {
829
+ id: string;
830
+ account_login: string;
831
+ account_type?: string | undefined;
832
+ repository_selection: 'all' | 'selected';
833
+ };
834
+ export type AppGithubAccount = {
835
+ login: string;
836
+ account_type: string;
837
+ avatar_url?: string | undefined;
838
+ };
839
+ export type ExchangeAppGithubAuthorizationResponse = {
840
+ connection_id: string;
841
+ installations: AppGithubInstallation[];
842
+ accounts: AppGithubAccount[];
843
+ };
844
+ export type AppGithubRepository = {
845
+ name: string;
846
+ full_name: string;
847
+ private: boolean;
848
+ default_branch: string;
849
+ html_url: string;
850
+ };
851
+ export type AppGithubRepositoryCreation = {
852
+ name: string;
853
+ private?: boolean | undefined;
854
+ };
855
+ export type AppGithubRepositoryList = {
856
+ repositories: AppGithubRepository[];
857
+ };
858
+ export type AppGithubRepositorySetupQuery = {
859
+ connection_id: string;
860
+ installation_id: string;
861
+ repository: string;
862
+ branch: string;
863
+ };
864
+ export type AppGithubBranchState = {
865
+ name: string;
866
+ exists: boolean;
867
+ empty: boolean;
868
+ };
869
+ export type AppGithubRepositorySetup = {
870
+ default_branch: string;
871
+ branches: string[];
872
+ selected_branch: AppGithubBranchState;
873
+ };
801
874
  export type StartAppDevelopmentTaskRequest = {
802
875
  prompt: string;
803
876
  environment: string;
@@ -833,7 +906,9 @@ export type AppScaffoldProgress = {
833
906
  */
834
907
  export type AppAccessControl = 'all' | 'ui' | 'none';
835
908
  export type AppManifestData = {
909
+ parameters?: Record<string, McpConnectionParameter> | undefined;
836
910
  oauth_scopes?: string[] | undefined;
911
+ oauth_client?: AppOAuthClientConfig | undefined;
837
912
  name: string;
838
913
  visibility: 'public' | 'private' | 'vertesia';
839
914
  title: string;
@@ -860,7 +935,9 @@ export type AppManifestData = {
860
935
  access_control?: AppAccessControl | undefined;
861
936
  };
862
937
  export type UpdateAppPayload = {
938
+ parameters?: Record<string, McpConnectionParameter> | undefined;
863
939
  oauth_scopes?: string[] | undefined;
940
+ oauth_client?: AppOAuthClientConfig | undefined;
864
941
  name: string;
865
942
  visibility: 'public' | 'private' | 'vertesia';
866
943
  title: string;
@@ -888,11 +965,15 @@ export type UpdateAppPayload = {
888
965
  expected_edit_revision?: number | undefined;
889
966
  };
890
967
  export type AppGitSourceConfig = {
968
+ provider?: AppGitSourceProvider | undefined;
891
969
  url?: string | undefined;
970
+ installation_id?: string | undefined;
971
+ repository?: string | undefined;
892
972
  default_branch?: string | undefined;
893
973
  production_branch?: string | undefined;
894
974
  development_branch?: string | undefined;
895
975
  };
976
+ export type AppGitSourceProvider = 'vertesia' | 'github';
896
977
  export type AppSourceConfig = {
897
978
  kind: 'git';
898
979
  git?: AppGitSourceConfig | undefined;
@@ -1032,6 +1113,7 @@ export type AppEventSubscriptionDefinition = {
1032
1113
  priority?: EventPriority | undefined;
1033
1114
  };
1034
1115
  export type AppPackage = {
1116
+ oauth_client?: AppOAuthClientConfig | undefined;
1035
1117
  oauth_scopes?: string[] | undefined;
1036
1118
  ui?: AppUIConfig | undefined;
1037
1119
  tools?: AgentToolDefinition[] | undefined;
@@ -1113,7 +1195,9 @@ export type RenderingTemplateDefinitionRef = {
1113
1195
  tags?: string[] | undefined;
1114
1196
  };
1115
1197
  export type AppManifest = {
1198
+ parameters?: Record<string, McpConnectionParameter> | undefined;
1116
1199
  oauth_scopes?: string[] | undefined;
1200
+ oauth_client?: AppOAuthClientConfig | undefined;
1117
1201
  edit_revision: number;
1118
1202
  name: string;
1119
1203
  visibility: 'public' | 'private' | 'vertesia';
@@ -1147,7 +1231,10 @@ export type AppManifest = {
1147
1231
  export type AppManifestSource = {
1148
1232
  kind: 'git';
1149
1233
  git: {
1234
+ provider?: AppGitSourceProvider | undefined;
1150
1235
  url: string;
1236
+ installation_id?: string | undefined;
1237
+ repository?: string | undefined;
1151
1238
  default_branch?: string | undefined;
1152
1239
  production_branch?: string | undefined;
1153
1240
  development_branch?: string | undefined;
@@ -1176,12 +1263,26 @@ export type AppInstallationProviderBinding = {
1176
1263
  export type AppInstallation = {
1177
1264
  id: string;
1178
1265
  project: string;
1266
+ instance_key?: string | undefined;
1267
+ display_name?: string | undefined;
1268
+ installation_version?: 1 | undefined;
1269
+ namespace_overrides?: Record<string, string> | undefined;
1270
+ reserved_namespaces?: string[] | undefined;
1271
+ namespace_conflicts?: string[] | undefined;
1179
1272
  manifest: string;
1273
+ mcp_configuration?: {
1274
+ revision: string;
1275
+ values: Record<string, Record<string, string>>;
1276
+ configured_secrets: Record<string, string[]>;
1277
+ shared_values?: Record<string, string> | undefined;
1278
+ configured_shared_secrets?: string[] | undefined;
1279
+ } | undefined;
1180
1280
  oauth_approval?: {
1181
1281
  scopes: string[];
1182
1282
  approved_by: string;
1183
1283
  approved_at: string;
1184
1284
  } | undefined;
1285
+ oauth_client_id?: string | undefined;
1185
1286
  settings?: {
1186
1287
  [k: string]: unknown;
1187
1288
  } | undefined;
@@ -1195,11 +1296,25 @@ export type AppInstallation = {
1195
1296
  export type AppInstallationWithManifest = {
1196
1297
  id: string;
1197
1298
  project: string;
1299
+ instance_key?: string | undefined;
1300
+ display_name?: string | undefined;
1301
+ installation_version?: 1 | undefined;
1302
+ namespace_overrides?: Record<string, string> | undefined;
1303
+ reserved_namespaces?: string[] | undefined;
1304
+ namespace_conflicts?: string[] | undefined;
1305
+ mcp_configuration?: {
1306
+ revision: string;
1307
+ values: Record<string, Record<string, string>>;
1308
+ configured_secrets: Record<string, string[]>;
1309
+ shared_values?: Record<string, string> | undefined;
1310
+ configured_shared_secrets?: string[] | undefined;
1311
+ } | undefined;
1198
1312
  oauth_approval?: {
1199
1313
  scopes: string[];
1200
1314
  approved_by: string;
1201
1315
  approved_at: string;
1202
1316
  } | undefined;
1317
+ oauth_client_id?: string | undefined;
1203
1318
  settings?: {
1204
1319
  [k: string]: unknown;
1205
1320
  } | undefined;
@@ -1215,11 +1330,25 @@ export type AppInstallationWithManifest = {
1215
1330
  export type AppInstallationListEntry = {
1216
1331
  id: string;
1217
1332
  project: string;
1333
+ instance_key?: string | undefined;
1334
+ display_name?: string | undefined;
1335
+ installation_version?: 1 | undefined;
1336
+ namespace_overrides?: Record<string, string> | undefined;
1337
+ reserved_namespaces?: string[] | undefined;
1338
+ namespace_conflicts?: string[] | undefined;
1339
+ mcp_configuration?: {
1340
+ revision: string;
1341
+ values: Record<string, Record<string, string>>;
1342
+ configured_secrets: Record<string, string[]>;
1343
+ shared_values?: Record<string, string> | undefined;
1344
+ configured_shared_secrets?: string[] | undefined;
1345
+ } | undefined;
1218
1346
  oauth_approval?: {
1219
1347
  scopes: string[];
1220
1348
  approved_by: string;
1221
1349
  approved_at: string;
1222
1350
  } | undefined;
1351
+ oauth_client_id?: string | undefined;
1223
1352
  settings?: {
1224
1353
  [k: string]: unknown;
1225
1354
  } | undefined;
@@ -1251,6 +1380,11 @@ export type AppApiKeyCollectionParams = {
1251
1380
  export type AppOAuthProviderParams = AppOAuthCollectionParams;
1252
1381
  export type AppInstallationPayload = {
1253
1382
  app_id: string;
1383
+ instance_key?: string | undefined;
1384
+ display_name?: string | undefined;
1385
+ namespace_overrides?: Record<string, string> | undefined;
1386
+ mcp_shared_parameters?: Record<string, string | null> | undefined;
1387
+ mcp_parameters?: Record<string, Record<string, string | null>> | undefined;
1254
1388
  settings?: {
1255
1389
  [k: string]: unknown;
1256
1390
  } | undefined;
@@ -1268,6 +1402,7 @@ export type AppInstallationKind = 'ui' | 'tools' | 'all';
1268
1402
  */
1269
1403
  export type AppToolCollection = {
1270
1404
  name: string;
1405
+ collection_id?: string | undefined;
1271
1406
  description?: string | undefined;
1272
1407
  tools: AgentToolDefinition[];
1273
1408
  };
@@ -1534,6 +1669,23 @@ export type AppDeleteSummary = {
1534
1669
  export type UpdateAppInstallationOAuthApprovalPayload = {
1535
1670
  approved_scopes: string[];
1536
1671
  };
1672
+ export type AppInstanceAvailability = {
1673
+ enabled: boolean;
1674
+ };
1675
+ export type McpPublicParameter = {
1676
+ title?: string | undefined;
1677
+ description?: string | undefined;
1678
+ required?: boolean | undefined;
1679
+ type?: 'string' | undefined;
1680
+ default?: string | undefined;
1681
+ };
1682
+ export type McpSecretParameter = {
1683
+ title?: string | undefined;
1684
+ description?: string | undefined;
1685
+ required?: boolean | undefined;
1686
+ type: 'secret';
1687
+ };
1688
+ export type McpConnectionParameter = McpPublicParameter | McpSecretParameter;
1537
1689
  /**
1538
1690
  * Generic metering entry attached to audit events.
1539
1691
  * Used for cost attribution, usage tracking, and billing.
@@ -2400,6 +2552,12 @@ export type AlterTableOperation = {
2400
2552
  op: 'modify_column';
2401
2553
  column: string;
2402
2554
  updates: DataColumnUpdate;
2555
+ } | {
2556
+ op: 'add_foreign_key';
2557
+ foreign_key: DataForeignKey;
2558
+ } | {
2559
+ op: 'drop_foreign_key';
2560
+ column: string;
2403
2561
  };
2404
2562
  /**
2405
2563
  * Payload for altering a table schema.
@@ -4377,8 +4535,8 @@ export type OAuthClientType = 'public' | 'confidential';
4377
4535
  export type OAuthClientStatus = 'active' | 'disabled';
4378
4536
  export type OAuthRegistrationSource = 'admin' | 'dynamic';
4379
4537
  export type OAuthProjectBindingMode = 'user_select' | 'fixed';
4380
- export type OAuthTokenEndpointAuthMethod = 'none' | 'client_secret_post' | 'client_secret_basic';
4381
- export type OAuthGrantType = 'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:device_code';
4538
+ export type OAuthTokenEndpointAuthMethod = 'none' | 'client_secret_post' | 'client_secret_basic' | 'private_key_jwt';
4539
+ export type OAuthGrantType = 'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:device_code' | 'urn:ietf:params:oauth:grant-type:token-exchange';
4382
4540
  export type OAuthResponseType = 'code';
4383
4541
  export type OAuthAuthorizationRequestStatus = 'pending' | 'denied' | 'consumed';
4384
4542
  export type OAuthClientRegistrationMode = 'registered' | 'client_id_metadata_document';
@@ -4387,12 +4545,14 @@ export type OAuthGrantSortField = 'granted_at' | 'client_name' | 'user_name' | '
4387
4545
  export type OAuthGrantSortOrder = 'asc' | 'desc';
4388
4546
  /** An OAuth client's registration, without the id the server issues for it. */
4389
4547
  export type OAuthClientData = {
4548
+ app_id?: string | undefined;
4390
4549
  client_name: string;
4391
4550
  client_type: OAuthClientType;
4392
4551
  redirect_uris: string[];
4393
4552
  grant_types: OAuthGrantType[];
4394
4553
  response_types: OAuthResponseType[];
4395
4554
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4555
+ jwks_uri?: string | undefined;
4396
4556
  allowed_scopes: string[];
4397
4557
  default_scopes?: string[] | undefined;
4398
4558
  registration_source: OAuthRegistrationSource;
@@ -4409,12 +4569,14 @@ export type OAuthClientData = {
4409
4569
  updated_at: string;
4410
4570
  };
4411
4571
  export type OAuthClient = {
4572
+ app_id?: string | undefined;
4412
4573
  client_name: string;
4413
4574
  client_type: OAuthClientType;
4414
4575
  redirect_uris: string[];
4415
4576
  grant_types: OAuthGrantType[];
4416
4577
  response_types: OAuthResponseType[];
4417
4578
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4579
+ jwks_uri?: string | undefined;
4418
4580
  allowed_scopes: string[];
4419
4581
  default_scopes?: string[] | undefined;
4420
4582
  registration_source: OAuthRegistrationSource;
@@ -4433,12 +4595,14 @@ export type OAuthClient = {
4433
4595
  };
4434
4596
  /** The read shape plus the client secret, which is returned by the create call and never again. */
4435
4597
  export type OAuthClientCreateResponse = {
4598
+ app_id?: string | undefined;
4436
4599
  client_name: string;
4437
4600
  client_type: OAuthClientType;
4438
4601
  redirect_uris: string[];
4439
4602
  grant_types: OAuthGrantType[];
4440
4603
  response_types: OAuthResponseType[];
4441
4604
  token_endpoint_auth_method: OAuthTokenEndpointAuthMethod;
4605
+ jwks_uri?: string | undefined;
4442
4606
  allowed_scopes: string[];
4443
4607
  default_scopes?: string[] | undefined;
4444
4608
  registration_source: OAuthRegistrationSource;
@@ -4524,6 +4688,7 @@ export type CreateOAuthClientPayload = {
4524
4688
  grant_types?: OAuthGrantType[] | undefined;
4525
4689
  response_types?: OAuthResponseType[] | undefined;
4526
4690
  token_endpoint_auth_method?: OAuthTokenEndpointAuthMethod | undefined;
4691
+ jwks_uri?: string | undefined;
4527
4692
  allowed_scopes?: string[] | undefined;
4528
4693
  default_scopes?: string[] | undefined;
4529
4694
  project_binding_mode?: OAuthProjectBindingMode | undefined;
@@ -4540,9 +4705,11 @@ export type UpdateOAuthClientPayload = {
4540
4705
  grant_types?: OAuthGrantType[] | undefined;
4541
4706
  response_types?: OAuthResponseType[] | undefined;
4542
4707
  token_endpoint_auth_method?: OAuthTokenEndpointAuthMethod | undefined;
4708
+ jwks_uri?: string | undefined;
4543
4709
  allowed_scopes?: string[] | undefined;
4544
4710
  default_scopes?: string[] | undefined;
4545
4711
  status?: OAuthClientStatus | undefined;
4712
+ revoke_previous_client_secret?: boolean | undefined;
4546
4713
  project_binding_mode?: OAuthProjectBindingMode | undefined;
4547
4714
  fixed_project_id?: string | undefined;
4548
4715
  restrict_to_owner_account?: boolean | undefined;
@@ -4562,6 +4729,7 @@ export type OAuthAuthorizationServerMetadata = {
4562
4729
  grant_types_supported: string[];
4563
4730
  code_challenge_methods_supported: string[];
4564
4731
  token_endpoint_auth_methods_supported: string[];
4732
+ token_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
4565
4733
  scopes_supported: string[];
4566
4734
  client_id_metadata_document_supported?: boolean | undefined;
4567
4735
  authorization_response_iss_parameter_supported?: boolean | undefined;
@@ -4602,6 +4770,7 @@ export type OAuthAuthorizationRequest = {
4602
4770
  user_code?: string | undefined;
4603
4771
  client_id: string;
4604
4772
  client_name: string;
4773
+ app_id?: string | undefined;
4605
4774
  client_metadata?: OAuthClientDisplayMetadata | undefined;
4606
4775
  client_registration_mode?: OAuthClientRegistrationMode | undefined;
4607
4776
  redirect_uri: string;
@@ -4675,6 +4844,64 @@ export type OAuthLoginUserNotFoundResponse = {
4675
4844
  error: 'user_not_found';
4676
4845
  ensure_user_url: string;
4677
4846
  };
4847
+ export type OidcFederationConnectionPayload = {
4848
+ name: string;
4849
+ issuer: string;
4850
+ jwks_uri?: string | undefined;
4851
+ external_id_claim: string;
4852
+ allowed_audiences: string[];
4853
+ allowed_algorithms: ('RS256' | 'ES256')[];
4854
+ 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';
4855
+ required_claims?: Record<string, string> | undefined;
4856
+ all_projects?: boolean | undefined;
4857
+ allowed_project_ids: string[];
4858
+ allowed_client_ids?: string[] | undefined;
4859
+ allowed_scopes?: string[] | undefined;
4860
+ max_token_ttl_seconds: number;
4861
+ max_subject_token_age_seconds?: number | undefined;
4862
+ enabled: boolean;
4863
+ };
4864
+ export type OidcFederationConnection = {
4865
+ name: string;
4866
+ issuer: string;
4867
+ jwks_uri?: string | undefined;
4868
+ external_id_claim: string;
4869
+ allowed_audiences: string[];
4870
+ allowed_algorithms: ('RS256' | 'ES256')[];
4871
+ 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';
4872
+ required_claims?: Record<string, string> | undefined;
4873
+ all_projects?: boolean | undefined;
4874
+ allowed_project_ids: string[];
4875
+ allowed_client_ids?: string[] | undefined;
4876
+ allowed_scopes?: string[] | undefined;
4877
+ max_token_ttl_seconds: number;
4878
+ max_subject_token_age_seconds: number;
4879
+ enabled: boolean;
4880
+ id: string;
4881
+ account_id: string;
4882
+ };
4883
+ export type OidcFederationConnectionArray = OidcFederationConnection[];
4884
+ export type OAuthTokenExchangeRequest = {
4885
+ grant_type: 'urn:ietf:params:oauth:grant-type:token-exchange';
4886
+ subject_token: string;
4887
+ 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';
4888
+ requested_token_type?: 'urn:ietf:params:oauth:token-type:access_token' | undefined;
4889
+ federation_connection_id: string;
4890
+ client_id?: string | undefined;
4891
+ client_secret?: string | undefined;
4892
+ client_assertion?: string | undefined;
4893
+ client_assertion_type?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer' | undefined;
4894
+ project_id: string;
4895
+ resource: string;
4896
+ scope?: string | undefined;
4897
+ };
4898
+ export type OAuthTokenExchangeResponse = {
4899
+ access_token: string;
4900
+ token_type: 'Bearer';
4901
+ expires_in: number;
4902
+ scope?: string | undefined;
4903
+ issued_token_type: 'urn:ietf:params:oauth:token-type:access_token';
4904
+ };
4678
4905
  /**
4679
4906
  * OAuth Provider data stored in MongoDB.
4680
4907
  * Represents the configuration for an OAuth 2.0 provider at the project level.
@@ -5503,6 +5730,7 @@ export type StartProjectReindexPayload = {
5503
5730
  concurrency?: number | undefined;
5504
5731
  bulk_size_bytes?: number | undefined;
5505
5732
  bulk_concurrency?: number | undefined;
5733
+ modified_since?: string | undefined;
5506
5734
  };
5507
5735
  export type ReindexAgentRunsPayload = {
5508
5736
  recreate_index?: boolean | undefined;
@@ -6943,6 +7171,7 @@ export type PublishProcessDefinitionPayload = {
6943
7171
  tags?: string[] | undefined;
6944
7172
  label?: string | undefined;
6945
7173
  comment?: string | undefined;
7174
+ idempotency_key?: string | undefined;
6946
7175
  };
6947
7176
  export type RevertProcessDefinitionPayload = {
6948
7177
  confirmed: boolean;
@@ -7057,6 +7286,7 @@ export type StartProcessTestRunPayload = {
7057
7286
  suite_id: string;
7058
7287
  process_revision_id: string;
7059
7288
  scenario_ids?: string[] | undefined;
7289
+ idempotency_key?: string | undefined;
7060
7290
  };
7061
7291
  export type ProcessTestAssertionResult = {
7062
7292
  assertion: string;
@@ -7322,6 +7552,10 @@ export type ContentObjectUserPermissions = {
7322
7552
  export type ContentObjectTextResponse = {
7323
7553
  text?: string | undefined;
7324
7554
  };
7555
+ export type SetObjectTextPayload = {
7556
+ text: string;
7557
+ etag?: string | undefined;
7558
+ };
7325
7559
  export type DeleteContentObjectResult = {
7326
7560
  id: string;
7327
7561
  count: number;
@@ -9269,6 +9503,7 @@ export type ProcessTestTargetWithDefinitionWire = {
9269
9503
  export type SubmitProcessTestRunPayloadWire = {
9270
9504
  process: ProcessTestTargetWire;
9271
9505
  scenarios: ProcessTestScenario[];
9506
+ idempotency_key?: string | undefined;
9272
9507
  };
9273
9508
  export type CreateContentObjectPayloadWire = {
9274
9509
  text?: string | undefined;
@@ -9890,7 +10125,7 @@ export type UpdateAgentRunStatusPayloadWire = {
9890
10125
  };
9891
10126
  export type TurnTerminalTypeWire = 'answer' | 'user_stopped' | 'completed' | 'failed' | 'cancelled' | 'interrupted';
9892
10127
  export type EvaluationSeverityWire = 'none' | 'low' | 'medium' | 'high';
9893
- export type TurnEvaluationFlagWire = 'user_stopped_after_failure' | 'mutation_unsuccessful' | 'run_failed' | 'unrecovered_tool' | 'fail_streak' | 'identical_retry' | 'reread' | 'high_gather' | 'overhead' | 'followup_after_answer' | 'approval_denied' | 'circuit_breaker';
10128
+ export type TurnEvaluationFlagWire = 'user_stopped_after_failure' | 'mutation_unsuccessful' | 'run_failed' | 'unrecovered_tool' | 'fail_streak' | 'identical_retry' | 'reread' | 'high_gather' | 'overhead' | 'followup_after_answer' | 'approval_denied' | 'circuit_breaker' | 'no_visible_answer' | 'answer_in_tool_preamble';
9894
10129
  export type ToolErrorClassWire = 'schema' | 'platform' | 'config' | 'environment' | 'other';
9895
10130
  export type EvaluationGateReasonWire = 'signal' | 'sample' | 'opt_in' | 'always_on';
9896
10131
  export type EvaluationOutcomeWire = 'evaluated' | 'skipped_unarchived' | 'failed';
@@ -10071,6 +10306,7 @@ export interface ApiComponentTypes {
10071
10306
  AppCapabilities: AppCapabilities;
10072
10307
  AppAccessControl: AppAccessControl;
10073
10308
  AppSourceConfig: AppSourceConfig;
10309
+ AppGitSourceProvider: AppGitSourceProvider;
10074
10310
  AppManifestSource: AppManifestSource;
10075
10311
  SuccessResponse: SuccessResponse;
10076
10312
  OAuthProvider: OAuthProvider;
@@ -10108,6 +10344,11 @@ export interface ApiComponentTypes {
10108
10344
  OAuthDeviceAuthorizationRequest: OAuthDeviceAuthorizationRequest;
10109
10345
  OAuthDeviceAuthorizationResponse: OAuthDeviceAuthorizationResponse;
10110
10346
  OAuthTokenResponse: OAuthTokenResponse;
10347
+ OidcFederationConnectionPayload: OidcFederationConnectionPayload;
10348
+ OidcFederationConnection: OidcFederationConnection;
10349
+ OidcFederationConnectionArray: OidcFederationConnectionArray;
10350
+ OAuthTokenExchangeRequest: OAuthTokenExchangeRequest;
10351
+ OAuthTokenExchangeResponse: OAuthTokenExchangeResponse;
10111
10352
  OAuthClient: OAuthClient;
10112
10353
  OAuthClientArray: OAuthClientArray;
10113
10354
  OAuthClientCreateResponse: OAuthClientCreateResponse;
@@ -10625,6 +10866,7 @@ export interface ApiComponentTypes {
10625
10866
  TranscriptSegment: TranscriptSegment;
10626
10867
  ContentObjectTypeArray: ContentObjectTypeArray;
10627
10868
  ContentObjectTextResponse: ContentObjectTextResponse;
10869
+ SetObjectTextPayload: SetObjectTextPayload;
10628
10870
  DeleteContentObjectResult: DeleteContentObjectResult;
10629
10871
  Transcript: Transcript;
10630
10872
  CreateContentObjectPayload: CreateContentObjectPayloadWire;
@@ -11063,6 +11305,20 @@ export interface ApiComponentTypes {
11063
11305
  AppRepoBranch: AppRepoBranch;
11064
11306
  AppRepoDocumentCommit: AppRepoDocumentCommit;
11065
11307
  AppVersionGitSource: AppVersionGitSource;
11308
+ AppGithubConfiguration: AppGithubConfiguration;
11309
+ StartAppGithubAuthorizationResponse: StartAppGithubAuthorizationResponse;
11310
+ ExchangeAppGithubAuthorizationRequest: ExchangeAppGithubAuthorizationRequest;
11311
+ AppGithubRepositoriesQuery: AppGithubRepositoriesQuery;
11312
+ ExchangeAppGithubAuthorizationResponse: ExchangeAppGithubAuthorizationResponse;
11313
+ AppGithubInstallation: AppGithubInstallation;
11314
+ AppGithubAccount: AppGithubAccount;
11315
+ AppGithubRepository: AppGithubRepository;
11316
+ AppGithubRepositoryCreation: AppGithubRepositoryCreation;
11317
+ AppGithubRepositoryList: AppGithubRepositoryList;
11318
+ AppGithubRepositorySetupQuery: AppGithubRepositorySetupQuery;
11319
+ AppGithubBranchState: AppGithubBranchState;
11320
+ AppGithubRepositorySetup: AppGithubRepositorySetup;
11321
+ AppScaffoldSourceMode: AppScaffoldSourceMode;
11066
11322
  StartAppScaffoldRequest: StartAppScaffoldRequest;
11067
11323
  StartAppDevelopmentTaskRequest: StartAppDevelopmentTaskRequest;
11068
11324
  StartAppBuildRequest: StartAppBuildRequest;
@@ -11087,6 +11343,7 @@ export interface ApiComponentTypes {
11087
11343
  AgentRunSearchHit: AgentRunSearchHit;
11088
11344
  UpsertAppVersionRequest: UpsertAppVersionRequest;
11089
11345
  AppInstallationPayload: AppInstallationPayload;
11346
+ AppInstanceAvailability: AppInstanceAvailability;
11090
11347
  AppDevelopmentTaskDetails: AppDevelopmentTaskDetails;
11091
11348
  AppVersionRecordArray: AppVersionRecordArray;
11092
11349
  AppToolCollectionArray: AppToolCollectionArray;
@@ -11165,6 +11422,7 @@ export interface ApiComponentTypes {
11165
11422
  MCPOAuthConfigMap: MCPOAuthConfigMap;
11166
11423
  AppWidgetInfo: AppWidgetInfo;
11167
11424
  AppDashboardDefinition: AppDashboardDefinition;
11425
+ AppOAuthClientConfig: AppOAuthClientConfig;
11168
11426
  AppManifestData: AppManifestData;
11169
11427
  UpdateAppPayload: UpdateAppPayload;
11170
11428
  AppManifest: AppManifest;