@xfey/tutti 0.1.119 → 0.1.121

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 (113) hide show
  1. package/dist/approvals/decision-command.d.ts +2 -2
  2. package/dist/collaboration-state/clarification-snapshot.d.ts +9 -9
  3. package/dist/collaboration-state/task-compile-context.d.ts +1 -1
  4. package/dist/control-plane/workflows/openai.d.ts +3 -4
  5. package/dist/control-plane/workflows/openai.js +3 -2
  6. package/dist/providers/openai/app-server/invocation-coordinator.d.ts +1 -0
  7. package/dist/providers/openai/app-server/invocation-coordinator.js +4 -1
  8. package/dist/providers/openai/app-server/invocation-deadline.d.ts +3 -0
  9. package/dist/providers/openai/app-server/invocation-deadline.js +15 -0
  10. package/dist/providers/openai/app-server/read-only-procedure.d.ts +4 -2
  11. package/dist/providers/openai/app-server/read-only-procedure.js +16 -0
  12. package/dist/providers/openai/app-server/workspace-write-run.d.ts +4 -2
  13. package/dist/providers/openai/app-server/workspace-write-run.js +16 -0
  14. package/dist/providers/openai/chat-assistant.d.ts +3 -4
  15. package/dist/providers/openai/chat-assistant.js +2 -1
  16. package/dist/providers/openai/execution-access.d.ts +17 -0
  17. package/dist/providers/openai/execution-access.js +13 -0
  18. package/dist/providers/openai/sdk-procedure-runner.d.ts +2 -2
  19. package/dist/providers/openai/sdk-procedure-runner.js +17 -0
  20. package/dist/run-pipeline/artifact-applicability.d.ts +3 -4
  21. package/dist/run-pipeline/artifact-applicability.js +2 -1
  22. package/dist/run-pipeline/openai.d.ts +3 -4
  23. package/dist/run-pipeline/openai.js +3 -2
  24. package/dist/run-pipeline/task-run-invocation.js +6 -12
  25. package/dist/server-shell/cli/cli.js +3 -0
  26. package/dist/server-shell/cli/host-lifecycle.js +1 -0
  27. package/dist/server-shell/cli/host-server-runtime.d.ts +1 -0
  28. package/dist/server-shell/cli/host-server-runtime.js +83 -34
  29. package/dist/server-shell/cli/launch-command.js +1 -1
  30. package/dist/server-shell/cli/launch.d.ts +7 -3
  31. package/dist/server-shell/cli/launch.js +23 -4
  32. package/dist/server-shell/cli/machine-local.d.ts +9 -0
  33. package/dist/server-shell/cli/machine-local.js +60 -6
  34. package/dist/server-shell/cli/project-resolver.d.ts +2 -2
  35. package/dist/server-shell/cli/project-resolver.js +6 -3
  36. package/dist/server-shell/cli/relay-registration.js +38 -1
  37. package/dist/server-shell/http/routes/local-control.d.ts +1 -1
  38. package/dist/server-shell/http/routes/local-control.js +2 -46
  39. package/dist/server-shell/http/routes/project-api/openapi-workspace-routes.d.ts +45 -137
  40. package/dist/server-shell/http/routes/project-api/openapi.d.ts +45 -137
  41. package/dist/server-shell/http/routes/project-api/schemas.d.ts +24 -136
  42. package/dist/server-shell/http/routes/project-api/schemas.js +4 -58
  43. package/dist/server-shell/http/routes/project-api/types.d.ts +3 -0
  44. package/dist/server-shell/local-console/managed-project-routes.d.ts +9 -0
  45. package/dist/server-shell/local-console/managed-project-routes.js +120 -0
  46. package/dist/server-shell/local-console/managed-project-service.d.ts +141 -0
  47. package/dist/server-shell/local-console/managed-project-service.js +158 -0
  48. package/dist/server-shell/local-console/operation-coordinator.d.ts +1 -1
  49. package/dist/server-shell/local-console/package-update-hosts.js +2 -1
  50. package/dist/server-shell/local-console/project-service.d.ts +4 -1
  51. package/dist/server-shell/local-console/project-service.js +62 -14
  52. package/dist/server-shell/local-console/server.js +22 -2
  53. package/dist/server-shell/managed-access/execution-binding.d.ts +9 -0
  54. package/dist/server-shell/managed-access/execution-binding.js +22 -0
  55. package/dist/server-shell/managed-access/existing-project.d.ts +15 -0
  56. package/dist/server-shell/managed-access/existing-project.js +41 -0
  57. package/dist/server-shell/managed-access/legacy-records.d.ts +2 -0
  58. package/dist/server-shell/managed-access/legacy-records.js +24 -0
  59. package/dist/server-shell/managed-access/model-control-client.d.ts +65 -0
  60. package/dist/server-shell/managed-access/model-control-client.js +112 -0
  61. package/dist/server-shell/managed-access/private-store.d.ts +19 -0
  62. package/dist/server-shell/managed-access/private-store.js +275 -0
  63. package/dist/server-shell/managed-access/project-provider.d.ts +18 -0
  64. package/dist/server-shell/managed-access/project-provider.js +30 -0
  65. package/dist/server-shell/managed-access/records.d.ts +103 -0
  66. package/dist/server-shell/managed-access/records.js +74 -0
  67. package/dist/server-shell/managed-access/runners.d.ts +11 -0
  68. package/dist/server-shell/managed-access/runners.js +103 -0
  69. package/dist/server-shell/managed-access/runtime-records.d.ts +106 -0
  70. package/dist/server-shell/managed-access/runtime-records.js +65 -0
  71. package/dist/server-shell/managed-access/runtime.d.ts +48 -0
  72. package/dist/server-shell/managed-access/runtime.js +300 -0
  73. package/dist/server-shell/managed-access/state.d.ts +53 -0
  74. package/dist/server-shell/managed-access/state.js +292 -0
  75. package/dist/server-shell/managed-access/transport.d.ts +45 -0
  76. package/dist/server-shell/managed-access/transport.js +39 -0
  77. package/dist/server-shell/managed-access/workspace.d.ts +10 -0
  78. package/dist/server-shell/managed-access/workspace.js +69 -0
  79. package/dist/server-shell/smoke/e2e-client.d.ts +8 -3
  80. package/dist/server-shell/smoke/e2e-client.js +11 -11
  81. package/node_modules/@tutti/relay-client/dist/host-control.d.ts +4 -1
  82. package/node_modules/@tutti/relay-client/dist/host-control.js +26 -3
  83. package/node_modules/@tutti/relay-client/dist/index.d.ts +1 -0
  84. package/node_modules/@tutti/relay-client/dist/index.js +1 -0
  85. package/node_modules/@tutti/relay-client/dist/project-authority.d.ts +70 -0
  86. package/node_modules/@tutti/relay-client/dist/project-authority.js +139 -0
  87. package/node_modules/@tutti/shared/dist/ids/index.d.ts +7 -0
  88. package/node_modules/@tutti/shared/dist/ids/index.js +7 -0
  89. package/node_modules/@tutti/shared/dist/schemas/api/index.d.ts +1 -0
  90. package/node_modules/@tutti/shared/dist/schemas/api/index.js +1 -0
  91. package/node_modules/@tutti/shared/dist/schemas/api/managed-account.d.ts +34 -0
  92. package/node_modules/@tutti/shared/dist/schemas/api/managed-account.js +40 -0
  93. package/node_modules/@tutti/shared/dist/schemas/api/provider-config.d.ts +7 -4
  94. package/node_modules/@tutti/shared/dist/schemas/api/provider-config.js +5 -0
  95. package/node_modules/@tutti/shared/dist/schemas/api/runtime-events.d.ts +3 -0
  96. package/node_modules/@tutti/shared/dist/schemas/internal/creation-validation.d.ts +26 -0
  97. package/node_modules/@tutti/shared/dist/schemas/internal/creation-validation.js +40 -0
  98. package/node_modules/@tutti/shared/dist/schemas/internal/index.d.ts +5 -0
  99. package/node_modules/@tutti/shared/dist/schemas/internal/index.js +5 -0
  100. package/node_modules/@tutti/shared/dist/schemas/internal/managed-account.d.ts +12 -0
  101. package/node_modules/@tutti/shared/dist/schemas/internal/managed-account.js +13 -0
  102. package/node_modules/@tutti/shared/dist/schemas/internal/managed-models.d.ts +17 -0
  103. package/node_modules/@tutti/shared/dist/schemas/internal/managed-models.js +17 -0
  104. package/node_modules/@tutti/shared/dist/schemas/internal/managed-runtime.d.ts +113 -0
  105. package/node_modules/@tutti/shared/dist/schemas/internal/managed-runtime.js +84 -0
  106. package/node_modules/@tutti/shared/dist/schemas/internal/project-authority.d.ts +114 -0
  107. package/node_modules/@tutti/shared/dist/schemas/internal/project-authority.js +102 -0
  108. package/package.json +1 -1
  109. package/web/assets/{homepage-motion-scene-B6lCCHBq.js → homepage-motion-scene-WfLyzcCG.js} +1 -1
  110. package/web/assets/{index-DsYi7AhN.css → index-ATsYiBZs.css} +1 -1
  111. package/web/assets/index-o9YCtzEd.js +70 -0
  112. package/web/index.html +2 -2
  113. package/web/assets/index-DepsYMLl.js +0 -70
@@ -6,73 +6,27 @@ export declare const HOST_PROJECT_WORKSPACE_OPENAPI_ROUTES: ({
6
6
  responses: {
7
7
  200: {
8
8
  description: string;
9
- schema: {
10
- readonly oneOf: readonly [{
11
- readonly type: "object";
12
- readonly required: readonly ["status"];
13
- readonly additionalProperties: false;
14
- readonly properties: {
15
- readonly status: {
16
- readonly type: "string";
17
- readonly enum: readonly ["not_configured"];
18
- };
19
- };
20
- }, {
21
- readonly type: "object";
22
- readonly required: readonly ["status", "provider", "auth_kind", "redacted_key", "default_model", "validated_at"];
23
- readonly additionalProperties: false;
24
- readonly properties: {
25
- readonly status: {
26
- readonly type: "string";
27
- readonly enum: readonly ["configured"];
28
- };
29
- readonly provider: {
30
- readonly type: "string";
31
- readonly enum: readonly ["openai"];
32
- };
33
- readonly auth_kind: {
34
- readonly type: "string";
35
- readonly enum: readonly ["api_key"];
36
- };
37
- readonly redacted_key: {
38
- readonly type: "string";
39
- };
40
- readonly default_model: {
41
- readonly type: "string";
42
- };
43
- readonly validated_at: import("@sinclair/typebox").TString;
44
- };
45
- }, {
46
- readonly type: "object";
47
- readonly required: readonly ["status"];
48
- readonly additionalProperties: false;
49
- readonly properties: {
50
- readonly status: {
51
- readonly type: "string";
52
- readonly enum: readonly ["invalid"];
53
- };
54
- readonly provider: {
55
- readonly type: "string";
56
- readonly enum: readonly ["openai"];
57
- };
58
- readonly auth_kind: {
59
- readonly type: "string";
60
- readonly enum: readonly ["api_key"];
61
- };
62
- readonly redacted_key: {
63
- readonly type: "string";
64
- };
65
- readonly default_model: {
66
- readonly type: "string";
67
- };
68
- readonly validated_at: import("@sinclair/typebox").TString;
69
- readonly invalid_reason_code: {
70
- readonly type: "string";
71
- readonly enum: readonly ["provider_auth_invalid", "provider_quota_or_billing_required", "provider_rate_limited", "provider_model_unavailable", "provider_network_error", "unknown"];
72
- };
73
- };
74
- }];
75
- };
9
+ schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
10
+ status: import("@sinclair/typebox").TLiteral<"not_configured">;
11
+ }>, import("@sinclair/typebox").TObject<{
12
+ status: import("@sinclair/typebox").TLiteral<"managed">;
13
+ funding_kind: import("@sinclair/typebox").TLiteral<"trial">;
14
+ }>, import("@sinclair/typebox").TObject<{
15
+ status: import("@sinclair/typebox").TLiteral<"configured">;
16
+ provider: import("@sinclair/typebox").TLiteral<"openai">;
17
+ auth_kind: import("@sinclair/typebox").TLiteral<"api_key">;
18
+ redacted_key: import("@sinclair/typebox").TString;
19
+ default_model: import("@sinclair/typebox").TString;
20
+ validated_at: import("@sinclair/typebox").TString;
21
+ }>, import("@sinclair/typebox").TObject<{
22
+ status: import("@sinclair/typebox").TLiteral<"invalid">;
23
+ provider: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"openai">>;
24
+ auth_kind: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"api_key">>;
25
+ redacted_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
+ default_model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
27
+ validated_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
28
+ invalid_reason_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"provider_auth_invalid">, import("@sinclair/typebox").TLiteral<"provider_quota_or_billing_required">, import("@sinclair/typebox").TLiteral<"provider_rate_limited">, import("@sinclair/typebox").TLiteral<"provider_model_unavailable">, import("@sinclair/typebox").TLiteral<"provider_network_error">, import("@sinclair/typebox").TLiteral<"unknown">]>>;
29
+ }>]>;
76
30
  };
77
31
  };
78
32
  requestBody?: never;
@@ -89,7 +43,7 @@ export declare const HOST_PROJECT_WORKSPACE_OPENAPI_ROUTES: ({
89
43
  models: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
90
44
  }>, import("@sinclair/typebox").TObject<{
91
45
  status: import("@sinclair/typebox").TLiteral<"unavailable">;
92
- reason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"model_list_unavailable">, import("@sinclair/typebox").TLiteral<"model_list_empty">, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"provider_not_configured">, import("@sinclair/typebox").TLiteral<"provider_config_invalid">, import("@sinclair/typebox").TLiteral<"provider_credential_missing">]>]>;
46
+ reason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"model_list_unavailable">, import("@sinclair/typebox").TLiteral<"model_list_empty">, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"managed_model_fixed">, import("@sinclair/typebox").TLiteral<"provider_not_configured">, import("@sinclair/typebox").TLiteral<"provider_config_invalid">, import("@sinclair/typebox").TLiteral<"provider_credential_missing">]>]>;
93
47
  }>]>;
94
48
  };
95
49
  };
@@ -577,7 +531,7 @@ export declare const HOST_PROJECT_WORKSPACE_OPENAPI_ROUTES: ({
577
531
  readonly properties: {
578
532
  readonly status: {
579
533
  readonly type: "string";
580
- readonly enum: readonly ["not_configured", "configured", "invalid"];
534
+ readonly enum: readonly ["not_configured", "configured", "managed", "invalid"];
581
535
  };
582
536
  readonly provider: {
583
537
  readonly type: "string";
@@ -771,7 +725,7 @@ export declare const HOST_PROJECT_WORKSPACE_OPENAPI_ROUTES: ({
771
725
  readonly properties: {
772
726
  readonly status: {
773
727
  readonly type: "string";
774
- readonly enum: readonly ["not_configured", "configured", "invalid"];
728
+ readonly enum: readonly ["not_configured", "configured", "managed", "invalid"];
775
729
  };
776
730
  readonly provider: {
777
731
  readonly type: "string";
@@ -909,73 +863,27 @@ export declare const HOST_PROJECT_WORKSPACE_OPENAPI_ROUTES: ({
909
863
  };
910
864
  };
911
865
  };
912
- readonly provider_config: {
913
- readonly oneOf: readonly [{
914
- readonly type: "object";
915
- readonly required: readonly ["status"];
916
- readonly additionalProperties: false;
917
- readonly properties: {
918
- readonly status: {
919
- readonly type: "string";
920
- readonly enum: readonly ["not_configured"];
921
- };
922
- };
923
- }, {
924
- readonly type: "object";
925
- readonly required: readonly ["status", "provider", "auth_kind", "redacted_key", "default_model", "validated_at"];
926
- readonly additionalProperties: false;
927
- readonly properties: {
928
- readonly status: {
929
- readonly type: "string";
930
- readonly enum: readonly ["configured"];
931
- };
932
- readonly provider: {
933
- readonly type: "string";
934
- readonly enum: readonly ["openai"];
935
- };
936
- readonly auth_kind: {
937
- readonly type: "string";
938
- readonly enum: readonly ["api_key"];
939
- };
940
- readonly redacted_key: {
941
- readonly type: "string";
942
- };
943
- readonly default_model: {
944
- readonly type: "string";
945
- };
946
- readonly validated_at: import("@sinclair/typebox").TString;
947
- };
948
- }, {
949
- readonly type: "object";
950
- readonly required: readonly ["status"];
951
- readonly additionalProperties: false;
952
- readonly properties: {
953
- readonly status: {
954
- readonly type: "string";
955
- readonly enum: readonly ["invalid"];
956
- };
957
- readonly provider: {
958
- readonly type: "string";
959
- readonly enum: readonly ["openai"];
960
- };
961
- readonly auth_kind: {
962
- readonly type: "string";
963
- readonly enum: readonly ["api_key"];
964
- };
965
- readonly redacted_key: {
966
- readonly type: "string";
967
- };
968
- readonly default_model: {
969
- readonly type: "string";
970
- };
971
- readonly validated_at: import("@sinclair/typebox").TString;
972
- readonly invalid_reason_code: {
973
- readonly type: "string";
974
- readonly enum: readonly ["provider_auth_invalid", "provider_quota_or_billing_required", "provider_rate_limited", "provider_model_unavailable", "provider_network_error", "unknown"];
975
- };
976
- };
977
- }];
978
- };
866
+ readonly provider_config: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
867
+ status: import("@sinclair/typebox").TLiteral<"not_configured">;
868
+ }>, import("@sinclair/typebox").TObject<{
869
+ status: import("@sinclair/typebox").TLiteral<"managed">;
870
+ funding_kind: import("@sinclair/typebox").TLiteral<"trial">;
871
+ }>, import("@sinclair/typebox").TObject<{
872
+ status: import("@sinclair/typebox").TLiteral<"configured">;
873
+ provider: import("@sinclair/typebox").TLiteral<"openai">;
874
+ auth_kind: import("@sinclair/typebox").TLiteral<"api_key">;
875
+ redacted_key: import("@sinclair/typebox").TString;
876
+ default_model: import("@sinclair/typebox").TString;
877
+ validated_at: import("@sinclair/typebox").TString;
878
+ }>, import("@sinclair/typebox").TObject<{
879
+ status: import("@sinclair/typebox").TLiteral<"invalid">;
880
+ provider: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"openai">>;
881
+ auth_kind: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"api_key">>;
882
+ redacted_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
883
+ default_model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
884
+ validated_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
885
+ invalid_reason_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"provider_auth_invalid">, import("@sinclair/typebox").TLiteral<"provider_quota_or_billing_required">, import("@sinclair/typebox").TLiteral<"provider_rate_limited">, import("@sinclair/typebox").TLiteral<"provider_model_unavailable">, import("@sinclair/typebox").TLiteral<"provider_network_error">, import("@sinclair/typebox").TLiteral<"unknown">]>>;
886
+ }>]>;
979
887
  readonly snapshots: {
980
888
  readonly type: "object";
981
889
  readonly additionalProperties: false;
@@ -1313,73 +1313,27 @@ export declare const HOST_PROJECT_OPENAPI_ROUTES: ({
1313
1313
  responses: {
1314
1314
  200: {
1315
1315
  description: string;
1316
- schema: {
1317
- readonly oneOf: readonly [{
1318
- readonly type: "object";
1319
- readonly required: readonly ["status"];
1320
- readonly additionalProperties: false;
1321
- readonly properties: {
1322
- readonly status: {
1323
- readonly type: "string";
1324
- readonly enum: readonly ["not_configured"];
1325
- };
1326
- };
1327
- }, {
1328
- readonly type: "object";
1329
- readonly required: readonly ["status", "provider", "auth_kind", "redacted_key", "default_model", "validated_at"];
1330
- readonly additionalProperties: false;
1331
- readonly properties: {
1332
- readonly status: {
1333
- readonly type: "string";
1334
- readonly enum: readonly ["configured"];
1335
- };
1336
- readonly provider: {
1337
- readonly type: "string";
1338
- readonly enum: readonly ["openai"];
1339
- };
1340
- readonly auth_kind: {
1341
- readonly type: "string";
1342
- readonly enum: readonly ["api_key"];
1343
- };
1344
- readonly redacted_key: {
1345
- readonly type: "string";
1346
- };
1347
- readonly default_model: {
1348
- readonly type: "string";
1349
- };
1350
- readonly validated_at: import("@sinclair/typebox").TString;
1351
- };
1352
- }, {
1353
- readonly type: "object";
1354
- readonly required: readonly ["status"];
1355
- readonly additionalProperties: false;
1356
- readonly properties: {
1357
- readonly status: {
1358
- readonly type: "string";
1359
- readonly enum: readonly ["invalid"];
1360
- };
1361
- readonly provider: {
1362
- readonly type: "string";
1363
- readonly enum: readonly ["openai"];
1364
- };
1365
- readonly auth_kind: {
1366
- readonly type: "string";
1367
- readonly enum: readonly ["api_key"];
1368
- };
1369
- readonly redacted_key: {
1370
- readonly type: "string";
1371
- };
1372
- readonly default_model: {
1373
- readonly type: "string";
1374
- };
1375
- readonly validated_at: import("@sinclair/typebox").TString;
1376
- readonly invalid_reason_code: {
1377
- readonly type: "string";
1378
- readonly enum: readonly ["provider_auth_invalid", "provider_quota_or_billing_required", "provider_rate_limited", "provider_model_unavailable", "provider_network_error", "unknown"];
1379
- };
1380
- };
1381
- }];
1382
- };
1316
+ schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1317
+ status: import("@sinclair/typebox").TLiteral<"not_configured">;
1318
+ }>, import("@sinclair/typebox").TObject<{
1319
+ status: import("@sinclair/typebox").TLiteral<"managed">;
1320
+ funding_kind: import("@sinclair/typebox").TLiteral<"trial">;
1321
+ }>, import("@sinclair/typebox").TObject<{
1322
+ status: import("@sinclair/typebox").TLiteral<"configured">;
1323
+ provider: import("@sinclair/typebox").TLiteral<"openai">;
1324
+ auth_kind: import("@sinclair/typebox").TLiteral<"api_key">;
1325
+ redacted_key: import("@sinclair/typebox").TString;
1326
+ default_model: import("@sinclair/typebox").TString;
1327
+ validated_at: import("@sinclair/typebox").TString;
1328
+ }>, import("@sinclair/typebox").TObject<{
1329
+ status: import("@sinclair/typebox").TLiteral<"invalid">;
1330
+ provider: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"openai">>;
1331
+ auth_kind: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"api_key">>;
1332
+ redacted_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1333
+ default_model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1334
+ validated_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1335
+ invalid_reason_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"provider_auth_invalid">, import("@sinclair/typebox").TLiteral<"provider_quota_or_billing_required">, import("@sinclair/typebox").TLiteral<"provider_rate_limited">, import("@sinclair/typebox").TLiteral<"provider_model_unavailable">, import("@sinclair/typebox").TLiteral<"provider_network_error">, import("@sinclair/typebox").TLiteral<"unknown">]>>;
1336
+ }>]>;
1383
1337
  };
1384
1338
  };
1385
1339
  requestBody?: never;
@@ -1396,7 +1350,7 @@ export declare const HOST_PROJECT_OPENAPI_ROUTES: ({
1396
1350
  models: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1397
1351
  }>, import("@sinclair/typebox").TObject<{
1398
1352
  status: import("@sinclair/typebox").TLiteral<"unavailable">;
1399
- reason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"model_list_unavailable">, import("@sinclair/typebox").TLiteral<"model_list_empty">, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"provider_not_configured">, import("@sinclair/typebox").TLiteral<"provider_config_invalid">, import("@sinclair/typebox").TLiteral<"provider_credential_missing">]>]>;
1353
+ reason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"model_list_unavailable">, import("@sinclair/typebox").TLiteral<"model_list_empty">, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"managed_model_fixed">, import("@sinclair/typebox").TLiteral<"provider_not_configured">, import("@sinclair/typebox").TLiteral<"provider_config_invalid">, import("@sinclair/typebox").TLiteral<"provider_credential_missing">]>]>;
1400
1354
  }>]>;
1401
1355
  };
1402
1356
  };
@@ -1884,7 +1838,7 @@ export declare const HOST_PROJECT_OPENAPI_ROUTES: ({
1884
1838
  readonly properties: {
1885
1839
  readonly status: {
1886
1840
  readonly type: "string";
1887
- readonly enum: readonly ["not_configured", "configured", "invalid"];
1841
+ readonly enum: readonly ["not_configured", "configured", "managed", "invalid"];
1888
1842
  };
1889
1843
  readonly provider: {
1890
1844
  readonly type: "string";
@@ -2078,7 +2032,7 @@ export declare const HOST_PROJECT_OPENAPI_ROUTES: ({
2078
2032
  readonly properties: {
2079
2033
  readonly status: {
2080
2034
  readonly type: "string";
2081
- readonly enum: readonly ["not_configured", "configured", "invalid"];
2035
+ readonly enum: readonly ["not_configured", "configured", "managed", "invalid"];
2082
2036
  };
2083
2037
  readonly provider: {
2084
2038
  readonly type: "string";
@@ -2216,73 +2170,27 @@ export declare const HOST_PROJECT_OPENAPI_ROUTES: ({
2216
2170
  };
2217
2171
  };
2218
2172
  };
2219
- readonly provider_config: {
2220
- readonly oneOf: readonly [{
2221
- readonly type: "object";
2222
- readonly required: readonly ["status"];
2223
- readonly additionalProperties: false;
2224
- readonly properties: {
2225
- readonly status: {
2226
- readonly type: "string";
2227
- readonly enum: readonly ["not_configured"];
2228
- };
2229
- };
2230
- }, {
2231
- readonly type: "object";
2232
- readonly required: readonly ["status", "provider", "auth_kind", "redacted_key", "default_model", "validated_at"];
2233
- readonly additionalProperties: false;
2234
- readonly properties: {
2235
- readonly status: {
2236
- readonly type: "string";
2237
- readonly enum: readonly ["configured"];
2238
- };
2239
- readonly provider: {
2240
- readonly type: "string";
2241
- readonly enum: readonly ["openai"];
2242
- };
2243
- readonly auth_kind: {
2244
- readonly type: "string";
2245
- readonly enum: readonly ["api_key"];
2246
- };
2247
- readonly redacted_key: {
2248
- readonly type: "string";
2249
- };
2250
- readonly default_model: {
2251
- readonly type: "string";
2252
- };
2253
- readonly validated_at: import("@sinclair/typebox").TString;
2254
- };
2255
- }, {
2256
- readonly type: "object";
2257
- readonly required: readonly ["status"];
2258
- readonly additionalProperties: false;
2259
- readonly properties: {
2260
- readonly status: {
2261
- readonly type: "string";
2262
- readonly enum: readonly ["invalid"];
2263
- };
2264
- readonly provider: {
2265
- readonly type: "string";
2266
- readonly enum: readonly ["openai"];
2267
- };
2268
- readonly auth_kind: {
2269
- readonly type: "string";
2270
- readonly enum: readonly ["api_key"];
2271
- };
2272
- readonly redacted_key: {
2273
- readonly type: "string";
2274
- };
2275
- readonly default_model: {
2276
- readonly type: "string";
2277
- };
2278
- readonly validated_at: import("@sinclair/typebox").TString;
2279
- readonly invalid_reason_code: {
2280
- readonly type: "string";
2281
- readonly enum: readonly ["provider_auth_invalid", "provider_quota_or_billing_required", "provider_rate_limited", "provider_model_unavailable", "provider_network_error", "unknown"];
2282
- };
2283
- };
2284
- }];
2285
- };
2173
+ readonly provider_config: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
2174
+ status: import("@sinclair/typebox").TLiteral<"not_configured">;
2175
+ }>, import("@sinclair/typebox").TObject<{
2176
+ status: import("@sinclair/typebox").TLiteral<"managed">;
2177
+ funding_kind: import("@sinclair/typebox").TLiteral<"trial">;
2178
+ }>, import("@sinclair/typebox").TObject<{
2179
+ status: import("@sinclair/typebox").TLiteral<"configured">;
2180
+ provider: import("@sinclair/typebox").TLiteral<"openai">;
2181
+ auth_kind: import("@sinclair/typebox").TLiteral<"api_key">;
2182
+ redacted_key: import("@sinclair/typebox").TString;
2183
+ default_model: import("@sinclair/typebox").TString;
2184
+ validated_at: import("@sinclair/typebox").TString;
2185
+ }>, import("@sinclair/typebox").TObject<{
2186
+ status: import("@sinclair/typebox").TLiteral<"invalid">;
2187
+ provider: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"openai">>;
2188
+ auth_kind: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"api_key">>;
2189
+ redacted_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2190
+ default_model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2191
+ validated_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2192
+ invalid_reason_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"provider_auth_invalid">, import("@sinclair/typebox").TLiteral<"provider_quota_or_billing_required">, import("@sinclair/typebox").TLiteral<"provider_rate_limited">, import("@sinclair/typebox").TLiteral<"provider_model_unavailable">, import("@sinclair/typebox").TLiteral<"provider_network_error">, import("@sinclair/typebox").TLiteral<"unknown">]>>;
2193
+ }>]>;
2286
2194
  readonly snapshots: {
2287
2195
  readonly type: "object";
2288
2196
  readonly additionalProperties: false;
@@ -43,73 +43,7 @@ export declare const AccountAvatarProjectionSchema: {
43
43
  };
44
44
  }];
45
45
  };
46
- export declare const ProviderConfigProjectionSchema: {
47
- readonly oneOf: readonly [{
48
- readonly type: "object";
49
- readonly required: readonly ["status"];
50
- readonly additionalProperties: false;
51
- readonly properties: {
52
- readonly status: {
53
- readonly type: "string";
54
- readonly enum: readonly ["not_configured"];
55
- };
56
- };
57
- }, {
58
- readonly type: "object";
59
- readonly required: readonly ["status", "provider", "auth_kind", "redacted_key", "default_model", "validated_at"];
60
- readonly additionalProperties: false;
61
- readonly properties: {
62
- readonly status: {
63
- readonly type: "string";
64
- readonly enum: readonly ["configured"];
65
- };
66
- readonly provider: {
67
- readonly type: "string";
68
- readonly enum: readonly ["openai"];
69
- };
70
- readonly auth_kind: {
71
- readonly type: "string";
72
- readonly enum: readonly ["api_key"];
73
- };
74
- readonly redacted_key: {
75
- readonly type: "string";
76
- };
77
- readonly default_model: {
78
- readonly type: "string";
79
- };
80
- readonly validated_at: import("@sinclair/typebox").TString;
81
- };
82
- }, {
83
- readonly type: "object";
84
- readonly required: readonly ["status"];
85
- readonly additionalProperties: false;
86
- readonly properties: {
87
- readonly status: {
88
- readonly type: "string";
89
- readonly enum: readonly ["invalid"];
90
- };
91
- readonly provider: {
92
- readonly type: "string";
93
- readonly enum: readonly ["openai"];
94
- };
95
- readonly auth_kind: {
96
- readonly type: "string";
97
- readonly enum: readonly ["api_key"];
98
- };
99
- readonly redacted_key: {
100
- readonly type: "string";
101
- };
102
- readonly default_model: {
103
- readonly type: "string";
104
- };
105
- readonly validated_at: import("@sinclair/typebox").TString;
106
- readonly invalid_reason_code: {
107
- readonly type: "string";
108
- readonly enum: readonly ["provider_auth_invalid", "provider_quota_or_billing_required", "provider_rate_limited", "provider_model_unavailable", "provider_network_error", "unknown"];
109
- };
110
- };
111
- }];
112
- };
46
+ export { ProviderConfigProjectionSchema } from "@tutti/shared/schemas/api";
113
47
  export declare const ProviderUsageProjectionSchema: {
114
48
  readonly type: "object";
115
49
  readonly required: readonly ["total_tokens", "totals", "by_source", "by_model", "recent_windows"];
@@ -552,7 +486,7 @@ export declare const WorkspaceResponseSchema: {
552
486
  readonly properties: {
553
487
  readonly status: {
554
488
  readonly type: "string";
555
- readonly enum: readonly ["not_configured", "configured", "invalid"];
489
+ readonly enum: readonly ["not_configured", "configured", "managed", "invalid"];
556
490
  };
557
491
  readonly provider: {
558
492
  readonly type: "string";
@@ -735,7 +669,7 @@ export declare const BootstrapResponseSchema: {
735
669
  readonly properties: {
736
670
  readonly status: {
737
671
  readonly type: "string";
738
- readonly enum: readonly ["not_configured", "configured", "invalid"];
672
+ readonly enum: readonly ["not_configured", "configured", "managed", "invalid"];
739
673
  };
740
674
  readonly provider: {
741
675
  readonly type: "string";
@@ -873,73 +807,27 @@ export declare const BootstrapResponseSchema: {
873
807
  };
874
808
  };
875
809
  };
876
- readonly provider_config: {
877
- readonly oneOf: readonly [{
878
- readonly type: "object";
879
- readonly required: readonly ["status"];
880
- readonly additionalProperties: false;
881
- readonly properties: {
882
- readonly status: {
883
- readonly type: "string";
884
- readonly enum: readonly ["not_configured"];
885
- };
886
- };
887
- }, {
888
- readonly type: "object";
889
- readonly required: readonly ["status", "provider", "auth_kind", "redacted_key", "default_model", "validated_at"];
890
- readonly additionalProperties: false;
891
- readonly properties: {
892
- readonly status: {
893
- readonly type: "string";
894
- readonly enum: readonly ["configured"];
895
- };
896
- readonly provider: {
897
- readonly type: "string";
898
- readonly enum: readonly ["openai"];
899
- };
900
- readonly auth_kind: {
901
- readonly type: "string";
902
- readonly enum: readonly ["api_key"];
903
- };
904
- readonly redacted_key: {
905
- readonly type: "string";
906
- };
907
- readonly default_model: {
908
- readonly type: "string";
909
- };
910
- readonly validated_at: import("@sinclair/typebox").TString;
911
- };
912
- }, {
913
- readonly type: "object";
914
- readonly required: readonly ["status"];
915
- readonly additionalProperties: false;
916
- readonly properties: {
917
- readonly status: {
918
- readonly type: "string";
919
- readonly enum: readonly ["invalid"];
920
- };
921
- readonly provider: {
922
- readonly type: "string";
923
- readonly enum: readonly ["openai"];
924
- };
925
- readonly auth_kind: {
926
- readonly type: "string";
927
- readonly enum: readonly ["api_key"];
928
- };
929
- readonly redacted_key: {
930
- readonly type: "string";
931
- };
932
- readonly default_model: {
933
- readonly type: "string";
934
- };
935
- readonly validated_at: import("@sinclair/typebox").TString;
936
- readonly invalid_reason_code: {
937
- readonly type: "string";
938
- readonly enum: readonly ["provider_auth_invalid", "provider_quota_or_billing_required", "provider_rate_limited", "provider_model_unavailable", "provider_network_error", "unknown"];
939
- };
940
- };
941
- }];
942
- };
810
+ readonly provider_config: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
811
+ status: import("@sinclair/typebox").TLiteral<"not_configured">;
812
+ }>, import("@sinclair/typebox").TObject<{
813
+ status: import("@sinclair/typebox").TLiteral<"managed">;
814
+ funding_kind: import("@sinclair/typebox").TLiteral<"trial">;
815
+ }>, import("@sinclair/typebox").TObject<{
816
+ status: import("@sinclair/typebox").TLiteral<"configured">;
817
+ provider: import("@sinclair/typebox").TLiteral<"openai">;
818
+ auth_kind: import("@sinclair/typebox").TLiteral<"api_key">;
819
+ redacted_key: import("@sinclair/typebox").TString;
820
+ default_model: import("@sinclair/typebox").TString;
821
+ validated_at: import("@sinclair/typebox").TString;
822
+ }>, import("@sinclair/typebox").TObject<{
823
+ status: import("@sinclair/typebox").TLiteral<"invalid">;
824
+ provider: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"openai">>;
825
+ auth_kind: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"api_key">>;
826
+ redacted_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
827
+ default_model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
828
+ validated_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
829
+ invalid_reason_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"provider_auth_invalid">, import("@sinclair/typebox").TLiteral<"provider_quota_or_billing_required">, import("@sinclair/typebox").TLiteral<"provider_rate_limited">, import("@sinclair/typebox").TLiteral<"provider_model_unavailable">, import("@sinclair/typebox").TLiteral<"provider_network_error">, import("@sinclair/typebox").TLiteral<"unknown">]>>;
830
+ }>]>;
943
831
  readonly snapshots: {
944
832
  readonly type: "object";
945
833
  readonly additionalProperties: false;