@q9labsai/chalk-client 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +125 -0
  2. package/dist/chat-files/types.d.ts +3 -0
  3. package/dist/{chunk-RJRSLXVT.js → chunk-BCO3AZUB.js} +647 -221
  4. package/dist/{chunk-K7PNW3KI.js → chunk-D2GXPX2P.js} +143 -13
  5. package/dist/{chunk-KHHULLBZ.js → chunk-DHGAKJXP.js} +1 -1
  6. package/dist/{chunk-3ZN7IXOZ.js → chunk-HO4745TX.js} +250 -2
  7. package/dist/client.d.ts +201 -0
  8. package/dist/connection/dependencies.d.ts +3 -0
  9. package/dist/connection/diagnostics.d.ts +3 -2
  10. package/dist/connection/lifecycle.d.ts +1 -0
  11. package/dist/connection/types.d.ts +2 -0
  12. package/dist/effect.js +62 -4
  13. package/dist/generated/http-api.d.ts +197 -0
  14. package/dist/generated/schemas.d.ts +366 -0
  15. package/dist/generated/sync.d.ts +74 -3
  16. package/dist/generated/whiteboard-v1.d.ts +71 -9
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +18 -14
  19. package/dist/public-invites/index.js +2 -2
  20. package/dist/space-client/reload-rejoin.d.ts +1 -1
  21. package/dist/space-client/types.d.ts +8 -1
  22. package/dist/sync/connect-diagnostics.d.ts +10 -0
  23. package/dist/sync/index.js +1 -1
  24. package/dist/sync/types.d.ts +1 -0
  25. package/dist/sync/v1-client.d.ts +2 -0
  26. package/dist/sync/v1-types.d.ts +4 -0
  27. package/dist/whiteboard/index.d.ts +2 -5
  28. package/dist/whiteboard/types.d.ts +26 -3
  29. package/dist/whiteboard/v1-client.d.ts +3 -1
  30. package/dist/whiteboard/v1-codec.d.ts +5 -1
  31. package/dist/whiteboard/v1-multipart.d.ts +1 -1
  32. package/dist/whiteboard/view-bounds.d.ts +5 -0
  33. package/dist/whiteboard/view-versions.d.ts +9 -0
  34. package/package.json +1 -1
package/dist/client.d.ts CHANGED
@@ -745,6 +745,16 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
745
745
  readonly message: import("effect/Schema").String;
746
746
  }>;
747
747
  }>, never, never>>, never, never>, never, never>;
748
+ readonly getProblemReportAvailability: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProblemReportAvailability", "GET", "/v1/tenants/:tenant_id/problem-reports/availability", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
749
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
750
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
751
+ readonly available: import("effect/Schema").Boolean;
752
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").TenantInvalidIdError, import("effect/Schema").Struct<{
753
+ readonly error: import("effect/Schema").Struct<{
754
+ readonly code: import("effect/Schema").Literal<"tenant.invalid_id">;
755
+ readonly message: import("effect/Schema").String;
756
+ }>;
757
+ }>, never, never>>, never, never>, never, never>;
748
758
  readonly getWebhookDelivery: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getWebhookDelivery", "GET", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/deliveries/:delivery_id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
749
759
  readonly delivery_id: import("effect/Schema").brand<import("effect/Schema").String, "UUID">;
750
760
  readonly endpoint_id: import("effect/Schema").brand<import("effect/Schema").String, "UUID">;
@@ -2037,6 +2047,64 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
2037
2047
  readonly message: import("effect/Schema").String;
2038
2048
  }>;
2039
2049
  }>, never, never>>, never, never>, never, never>;
2050
+ readonly sendProblemReport: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendProblemReport", "POST", "/v1/tenants/:tenant_id/problem-reports", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2051
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
2052
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2053
+ readonly description: import("effect/Schema").String;
2054
+ readonly diagnostics: import("effect/Schema").optional<import("effect/Schema").String>;
2055
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2056
+ readonly sent: import("effect/Schema").Boolean;
2057
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").AccessForbiddenError, import("effect/Schema").Struct<{
2058
+ readonly error: import("effect/Schema").Struct<{
2059
+ readonly code: import("effect/Schema").Literal<"access.forbidden">;
2060
+ readonly message: import("effect/Schema").String;
2061
+ }>;
2062
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").AccessUnauthenticatedError, import("effect/Schema").Struct<{
2063
+ readonly error: import("effect/Schema").Struct<{
2064
+ readonly code: import("effect/Schema").Literal<"access.unauthenticated">;
2065
+ readonly message: import("effect/Schema").String;
2066
+ }>;
2067
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ReportsDeliveryFailedError, import("effect/Schema").Struct<{
2068
+ readonly error: import("effect/Schema").Struct<{
2069
+ readonly code: import("effect/Schema").Literal<"reports.delivery_failed">;
2070
+ readonly message: import("effect/Schema").String;
2071
+ }>;
2072
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ReportsUnavailableError, import("effect/Schema").Struct<{
2073
+ readonly error: import("effect/Schema").Struct<{
2074
+ readonly code: import("effect/Schema").Literal<"reports.unavailable">;
2075
+ readonly message: import("effect/Schema").String;
2076
+ }>;
2077
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestInvalidError, import("effect/Schema").Struct<{
2078
+ readonly error: import("effect/Schema").Struct<{
2079
+ readonly code: import("effect/Schema").Literal<"request.invalid">;
2080
+ readonly message: import("effect/Schema").String;
2081
+ }>;
2082
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestPayloadTooLargeError, import("effect/Schema").Struct<{
2083
+ readonly error: import("effect/Schema").Struct<{
2084
+ readonly code: import("effect/Schema").Literal<"request.payload_too_large">;
2085
+ readonly message: import("effect/Schema").String;
2086
+ }>;
2087
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestRateLimitedError, import("effect/Schema").Struct<{
2088
+ readonly error: import("effect/Schema").Struct<{
2089
+ readonly code: import("effect/Schema").Literal<"request.rate_limited">;
2090
+ readonly message: import("effect/Schema").String;
2091
+ }>;
2092
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceInternalError, import("effect/Schema").Struct<{
2093
+ readonly error: import("effect/Schema").Struct<{
2094
+ readonly code: import("effect/Schema").Literal<"service.internal_error">;
2095
+ readonly message: import("effect/Schema").String;
2096
+ }>;
2097
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceUnavailableError, import("effect/Schema").Struct<{
2098
+ readonly error: import("effect/Schema").Struct<{
2099
+ readonly code: import("effect/Schema").Literal<"service.unavailable">;
2100
+ readonly message: import("effect/Schema").String;
2101
+ }>;
2102
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").TenantInvalidIdError, import("effect/Schema").Struct<{
2103
+ readonly error: import("effect/Schema").Struct<{
2104
+ readonly code: import("effect/Schema").Literal<"tenant.invalid_id">;
2105
+ readonly message: import("effect/Schema").String;
2106
+ }>;
2107
+ }>, never, never>>, never, never>, never, never>;
2040
2108
  readonly testWebhookEndpoint: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"testWebhookEndpoint", "POST", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/test", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2041
2109
  readonly endpoint_id: import("effect/Schema").brand<import("effect/Schema").String, "UUID">;
2042
2110
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
@@ -2486,6 +2554,59 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
2486
2554
  readonly message: import("effect/Schema").String;
2487
2555
  }>;
2488
2556
  }>, never, never>>, never, never>, never, never>;
2557
+ readonly cancelEpisodeParticipantJoin: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"cancelEpisodeParticipantJoin", "POST", "/v1/tenants/:tenant_id/spaces/:space_id/episodes/:episode_id/participants/:participant_id/cancel-join", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2558
+ readonly episode_id: import("effect/Schema").brand<import("effect/Schema").String, "EpisodeId">;
2559
+ readonly participant_id: import("effect/Schema").brand<import("effect/Schema").String, "ParticipantId">;
2560
+ readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
2561
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
2562
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2563
+ readonly cancelled: import("effect/Schema").Boolean;
2564
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").AccessForbiddenError, import("effect/Schema").Struct<{
2565
+ readonly error: import("effect/Schema").Struct<{
2566
+ readonly code: import("effect/Schema").Literal<"access.forbidden">;
2567
+ readonly message: import("effect/Schema").String;
2568
+ }>;
2569
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").AccessUnauthenticatedError, import("effect/Schema").Struct<{
2570
+ readonly error: import("effect/Schema").Struct<{
2571
+ readonly code: import("effect/Schema").Literal<"access.unauthenticated">;
2572
+ readonly message: import("effect/Schema").String;
2573
+ }>;
2574
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").EpisodeInvalidIdError, import("effect/Schema").Struct<{
2575
+ readonly error: import("effect/Schema").Struct<{
2576
+ readonly code: import("effect/Schema").Literal<"episode.invalid_id">;
2577
+ readonly message: import("effect/Schema").String;
2578
+ }>;
2579
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ParticipantInvalidIdError, import("effect/Schema").Struct<{
2580
+ readonly error: import("effect/Schema").Struct<{
2581
+ readonly code: import("effect/Schema").Literal<"participant.invalid_id">;
2582
+ readonly message: import("effect/Schema").String;
2583
+ }>;
2584
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestInvalidError, import("effect/Schema").Struct<{
2585
+ readonly error: import("effect/Schema").Struct<{
2586
+ readonly code: import("effect/Schema").Literal<"request.invalid">;
2587
+ readonly message: import("effect/Schema").String;
2588
+ }>;
2589
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestRateLimitedError, import("effect/Schema").Struct<{
2590
+ readonly error: import("effect/Schema").Struct<{
2591
+ readonly code: import("effect/Schema").Literal<"request.rate_limited">;
2592
+ readonly message: import("effect/Schema").String;
2593
+ }>;
2594
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceInternalError, import("effect/Schema").Struct<{
2595
+ readonly error: import("effect/Schema").Struct<{
2596
+ readonly code: import("effect/Schema").Literal<"service.internal_error">;
2597
+ readonly message: import("effect/Schema").String;
2598
+ }>;
2599
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceUnavailableError, import("effect/Schema").Struct<{
2600
+ readonly error: import("effect/Schema").Struct<{
2601
+ readonly code: import("effect/Schema").Literal<"service.unavailable">;
2602
+ readonly message: import("effect/Schema").String;
2603
+ }>;
2604
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").SpaceInvalidIdError, import("effect/Schema").Struct<{
2605
+ readonly error: import("effect/Schema").Struct<{
2606
+ readonly code: import("effect/Schema").Literal<"space.invalid_id">;
2607
+ readonly message: import("effect/Schema").String;
2608
+ }>;
2609
+ }>, never, never>>, never, never>, never, never>;
2489
2610
  readonly createEpisode: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createEpisode", "POST", "/v1/tenants/:tenant_id/spaces/:space_id/episodes", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2490
2611
  readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
2491
2612
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
@@ -3534,6 +3655,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
3534
3655
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
3535
3656
  readonly transcription_policy: import("effect/Schema").String;
3536
3657
  readonly transcription_preparation: import("effect/Schema").Struct<{
3658
+ readonly expires_at: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>>;
3659
+ readonly failure_code: import("effect/Schema").optional<import("effect/Schema").String>;
3537
3660
  readonly status: import("effect/Schema").Literals<readonly ["none", "pending", "ready", "failed", "expired"]>;
3538
3661
  }>;
3539
3662
  readonly updated_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
@@ -3611,6 +3734,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
3611
3734
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
3612
3735
  readonly transcription_policy: import("effect/Schema").String;
3613
3736
  readonly transcription_preparation: import("effect/Schema").Struct<{
3737
+ readonly expires_at: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>>;
3738
+ readonly failure_code: import("effect/Schema").optional<import("effect/Schema").String>;
3614
3739
  readonly status: import("effect/Schema").Literals<readonly ["none", "pending", "ready", "failed", "expired"]>;
3615
3740
  }>;
3616
3741
  readonly updated_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
@@ -3698,6 +3823,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
3698
3823
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
3699
3824
  readonly transcription_policy: import("effect/Schema").String;
3700
3825
  readonly transcription_preparation: import("effect/Schema").Struct<{
3826
+ readonly expires_at: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>>;
3827
+ readonly failure_code: import("effect/Schema").optional<import("effect/Schema").String>;
3701
3828
  readonly status: import("effect/Schema").Literals<readonly ["none", "pending", "ready", "failed", "expired"]>;
3702
3829
  }>;
3703
3830
  readonly updated_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
@@ -4720,6 +4847,74 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
4720
4847
  readonly message: import("effect/Schema").String;
4721
4848
  }>;
4722
4849
  }>, never, never>>, never, never>, never, never>;
4850
+ readonly listSpaceActivity: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSpaceActivity", "GET", "/v1/tenants/:tenant_id/space-activity", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4851
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
4852
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4853
+ readonly space_ids: import("effect/Schema").String;
4854
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4855
+ readonly spaces: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4856
+ readonly archived: import("effect/Schema").Boolean;
4857
+ readonly latest_episode: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
4858
+ readonly ended_at: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>;
4859
+ readonly episode_id: import("effect/Schema").brand<import("effect/Schema").String, "EpisodeId">;
4860
+ readonly started_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
4861
+ readonly status: import("effect/Schema").String;
4862
+ }>>;
4863
+ readonly live_episode: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
4864
+ readonly episode_id: import("effect/Schema").brand<import("effect/Schema").String, "EpisodeId">;
4865
+ readonly participant_count: import("effect/Schema").Number;
4866
+ readonly participants: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4867
+ readonly display_name: import("effect/Schema").String;
4868
+ readonly participant_id: import("effect/Schema").brand<import("effect/Schema").String, "ParticipantId">;
4869
+ }>>;
4870
+ }>>;
4871
+ readonly recent_participants: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4872
+ readonly display_name: import("effect/Schema").String;
4873
+ readonly participant_id: import("effect/Schema").brand<import("effect/Schema").String, "ParticipantId">;
4874
+ }>>;
4875
+ readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
4876
+ }>>;
4877
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").AccessForbiddenError, import("effect/Schema").Struct<{
4878
+ readonly error: import("effect/Schema").Struct<{
4879
+ readonly code: import("effect/Schema").Literal<"access.forbidden">;
4880
+ readonly message: import("effect/Schema").String;
4881
+ }>;
4882
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").AccessUnauthenticatedError, import("effect/Schema").Struct<{
4883
+ readonly error: import("effect/Schema").Struct<{
4884
+ readonly code: import("effect/Schema").Literal<"access.unauthenticated">;
4885
+ readonly message: import("effect/Schema").String;
4886
+ }>;
4887
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").EpisodeInvalidSpaceIdsError, import("effect/Schema").Struct<{
4888
+ readonly error: import("effect/Schema").Struct<{
4889
+ readonly code: import("effect/Schema").Literal<"episode.invalid_space_ids">;
4890
+ readonly message: import("effect/Schema").String;
4891
+ }>;
4892
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestRateLimitedError, import("effect/Schema").Struct<{
4893
+ readonly error: import("effect/Schema").Struct<{
4894
+ readonly code: import("effect/Schema").Literal<"request.rate_limited">;
4895
+ readonly message: import("effect/Schema").String;
4896
+ }>;
4897
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceInternalError, import("effect/Schema").Struct<{
4898
+ readonly error: import("effect/Schema").Struct<{
4899
+ readonly code: import("effect/Schema").Literal<"service.internal_error">;
4900
+ readonly message: import("effect/Schema").String;
4901
+ }>;
4902
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceUnavailableError, import("effect/Schema").Struct<{
4903
+ readonly error: import("effect/Schema").Struct<{
4904
+ readonly code: import("effect/Schema").Literal<"service.unavailable">;
4905
+ readonly message: import("effect/Schema").String;
4906
+ }>;
4907
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").SpaceNotFoundError, import("effect/Schema").Struct<{
4908
+ readonly error: import("effect/Schema").Struct<{
4909
+ readonly code: import("effect/Schema").Literal<"space.not_found">;
4910
+ readonly message: import("effect/Schema").String;
4911
+ }>;
4912
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").TenantInvalidIdError, import("effect/Schema").Struct<{
4913
+ readonly error: import("effect/Schema").Struct<{
4914
+ readonly code: import("effect/Schema").Literal<"tenant.invalid_id">;
4915
+ readonly message: import("effect/Schema").String;
4916
+ }>;
4917
+ }>, never, never>>, never, never>, never, never>;
4723
4918
  readonly listSpacePublicAdmissionRequests: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSpacePublicAdmissionRequests", "GET", "/v1/tenants/:tenant_id/spaces/:space_id/public-admission-requests", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4724
4919
  readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
4725
4920
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
@@ -5510,6 +5705,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5510
5705
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5511
5706
  readonly name: import("effect/Schema").String;
5512
5707
  readonly provider_policy_version: import("effect/Schema").String;
5708
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5513
5709
  readonly recording_retention_seconds: import("effect/Schema").Number;
5514
5710
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5515
5711
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5593,6 +5789,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5593
5789
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5594
5790
  readonly name: import("effect/Schema").String;
5595
5791
  readonly provider_policy_version: import("effect/Schema").String;
5792
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5596
5793
  readonly recording_retention_seconds: import("effect/Schema").Number;
5597
5794
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5598
5795
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5661,6 +5858,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5661
5858
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5662
5859
  readonly name: import("effect/Schema").String;
5663
5860
  readonly provider_policy_version: import("effect/Schema").String;
5861
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5664
5862
  readonly recording_retention_seconds: import("effect/Schema").Number;
5665
5863
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5666
5864
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5736,6 +5934,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5736
5934
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5737
5935
  readonly name: import("effect/Schema").String;
5738
5936
  readonly provider_policy_version: import("effect/Schema").String;
5937
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5739
5938
  readonly recording_retention_seconds: import("effect/Schema").Number;
5740
5939
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5741
5940
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5802,6 +6001,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5802
6001
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>>;
5803
6002
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
5804
6003
  readonly provider_policy_version: import("effect/Schema").optional<import("effect/Schema").String>;
6004
+ readonly recording_render_mode: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>>;
5805
6005
  readonly recording_retention_seconds: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
5806
6006
  readonly storage_provider_config: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5807
6007
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5831,6 +6031,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5831
6031
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5832
6032
  readonly name: import("effect/Schema").String;
5833
6033
  readonly provider_policy_version: import("effect/Schema").String;
6034
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5834
6035
  readonly recording_retention_seconds: import("effect/Schema").Number;
5835
6036
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5836
6037
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -32,6 +32,8 @@ export type ConnectionMediaDevices = {
32
32
  };
33
33
  export type ConnectionSyncClient = V1CollaborationClient & {
34
34
  readonly start: () => Promise<void>;
35
+ /** Confirms entry after Sync is live and media has started. Without it, Sync confirms the entry at hello. */
36
+ readonly confirmEntered?: () => Promise<void>;
35
37
  readonly restartTransport?: () => void;
36
38
  readonly stop: () => void;
37
39
  readonly getSnapshot: () => V1EpisodeSnapshot;
@@ -95,6 +97,7 @@ export type ConnectionChatFileFactoryInput = {
95
97
  };
96
98
  export type ConnectionDependencies = {
97
99
  readonly clock: ConnectionClock;
100
+ readonly cancelPendingAdmission?: (access: ParsedAccessGrant, signal: AbortSignal) => Promise<boolean>;
98
101
  readonly mediaDevices: ConnectionMediaDevices;
99
102
  readonly createMediaClient: (input: ConnectionMediaFactoryInput) => ConnectionMediaClient;
100
103
  readonly createSyncClient: (input: ConnectionSyncFactoryInput) => ConnectionSyncClient;
@@ -1,6 +1,6 @@
1
1
  import type { ConnectionErrorCode, ConnectionState } from "./types";
2
- export type ConnectionDiagnosticEventName = "sync_dial_timeout" | "connection_failed" | "state_changed" | "access_refreshed" | "access_refresh_failed" | "recovery_attempt" | "recovery_succeeded" | "recovery_exhausted" | "cleanup_completed" | "cleanup_unconfirmed" | "space_join_span";
3
- export type ConnectionJoinTraceStep = "join" | "acquire_initial_media" | "access_initialize" | "create_media_client" | "create_sync_client" | "start_media" | "start_sync" | "wait_for_sync_live";
2
+ export type ConnectionDiagnosticEventName = "sync_dial_timeout" | "sync_connect_failed" | "connection_failed" | "state_changed" | "access_refreshed" | "access_refresh_failed" | "recovery_attempt" | "recovery_succeeded" | "recovery_exhausted" | "cleanup_completed" | "cleanup_unconfirmed" | "space_join_span";
3
+ export type ConnectionJoinTraceStep = "join" | "acquire_initial_media" | "access_initialize" | "create_media_client" | "create_sync_client" | "start_media" | "start_sync" | "wait_for_sync_live" | "confirm_entered";
4
4
  export type ConnectionJoinTraceOutcome = "started" | "succeeded" | "failed" | "cancelled";
5
5
  export type ConnectionJoinTraceEvent = ConnectionDiagnostic & {
6
6
  readonly event: "space_join_span";
@@ -31,6 +31,7 @@ export type ConnectionDiagnostic = {
31
31
  readonly parentSpanId?: string;
32
32
  readonly outcome?: ConnectionJoinTraceOutcome;
33
33
  readonly durationMs?: number;
34
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
34
35
  };
35
36
  export declare class ConnectionDiagnostics {
36
37
  #private;
@@ -17,6 +17,7 @@ export declare class ConnectionLifecycleFailure extends ConnectionLifecycleFailu
17
17
  readonly recoverable: boolean;
18
18
  readonly message: string;
19
19
  readonly cause?: unknown;
20
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
20
21
  }> {
21
22
  }
22
23
  export type ConnectionLifecycleCapability = {
@@ -17,6 +17,7 @@ export type ConnectionFailure = {
17
17
  readonly action: ConnectionActionName | null;
18
18
  readonly recoverable: boolean;
19
19
  readonly message: string;
20
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
20
21
  };
21
22
  export type ChalkPendingChatMessage = ChalkPendingChatMessageState<ConnectionFailure>;
22
23
  export type ChalkChatState = ChalkChatStateSnapshot<ConnectionFailure, ChalkPendingChatMessage>;
@@ -24,6 +25,7 @@ export declare class ConnectionError extends Error {
24
25
  readonly code: ConnectionErrorCode;
25
26
  readonly action: ConnectionActionName | null;
26
27
  readonly recoverable: boolean;
28
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
27
29
  constructor(failure: ConnectionFailure, options?: ErrorOptions);
28
30
  }
29
31
  export type ConnectionConnectionPhase = "idle" | "connecting" | "healthy" | "unresponsive" | "recovering" | "failed" | "stopped";
package/dist/effect.js CHANGED
@@ -17,7 +17,8 @@ import {
17
17
  makeSpaceClientCoreLayer,
18
18
  makeSpaceClientCoreLayerFromServices,
19
19
  makeSpaceStoreLayer
20
- } from "./chunk-RJRSLXVT.js";
20
+ } from "./chunk-BCO3AZUB.js";
21
+ import "./chunk-DWKTGBHR.js";
21
22
  import {
22
23
  APIKeyListSchema,
23
24
  APIKeyWithSecretSchema,
@@ -83,6 +84,10 @@ import {
83
84
  ArriveBySpacePublicInviteRequestHeadersSchema,
84
85
  ArriveBySpacePublicInviteResponseSchema,
85
86
  AuditLogIdSchema,
87
+ CancelEpisodeParticipantJoin429ResponseHeadersSchema,
88
+ CancelEpisodeParticipantJoinErrorSchema,
89
+ CancelEpisodeParticipantJoinPathParamsSchema,
90
+ CancelEpisodeParticipantJoinResponseSchema,
86
91
  CancelRecordingPreparationRequestSchema,
87
92
  CancelSpaceRecordingPreparation429ResponseHeadersSchema,
88
93
  CancelSpaceRecordingPreparationErrorSchema,
@@ -90,6 +95,7 @@ import {
90
95
  CancelSpaceRecordingPreparationRequestBodySchema,
91
96
  CancelSpaceRecordingPreparationResponseSchema,
92
97
  ChalkApi,
98
+ ChalkCodePointLimits,
93
99
  ChalkOperationPolicies,
94
100
  ChatAttachmentDownloadSchema,
95
101
  ChatAttachmentIdConflictError,
@@ -254,6 +260,9 @@ import {
254
260
  GetEpisodeErrorSchema,
255
261
  GetEpisodePathParamsSchema,
256
262
  GetEpisodeResponseSchema,
263
+ GetProblemReportAvailabilityErrorSchema,
264
+ GetProblemReportAvailabilityPathParamsSchema,
265
+ GetProblemReportAvailabilityResponseSchema,
257
266
  GetRecordingErrorSchema,
258
267
  GetRecordingPathParamsSchema,
259
268
  GetRecordingResponseSchema,
@@ -333,6 +342,11 @@ import {
333
342
  ListRecordingsPathParamsSchema,
334
343
  ListRecordingsQueryParamsSchema,
335
344
  ListRecordingsResponseSchema,
345
+ ListSpaceActivity429ResponseHeadersSchema,
346
+ ListSpaceActivityErrorSchema,
347
+ ListSpaceActivityPathParamsSchema,
348
+ ListSpaceActivityQueryParamsSchema,
349
+ ListSpaceActivityResponseSchema,
336
350
  ListSpaceLiveEpisodes429ResponseHeadersSchema,
337
351
  ListSpaceLiveEpisodesErrorSchema,
338
352
  ListSpaceLiveEpisodesPathParamsSchema,
@@ -443,6 +457,7 @@ import {
443
457
  ParticipantInvalidIdError,
444
458
  ParticipantInvalidIdErrorSchema,
445
459
  ParticipantInvalidIdErrorWireSchema,
460
+ ParticipantJoinCancellationSchema,
446
461
  ParticipantLifecycleSchema,
447
462
  ParticipantNotActiveError,
448
463
  ParticipantNotActiveErrorSchema,
@@ -465,6 +480,9 @@ import {
465
480
  PrepareSpaceRecordingPathParamsSchema,
466
481
  PrepareSpaceRecordingRequestBodySchema,
467
482
  PrepareSpaceRecordingResponseSchema,
483
+ ProblemReportAvailabilitySchema,
484
+ ProblemReportRequestSchema,
485
+ ProblemReportSentSchema,
468
486
  PublicAdmissionRequestPageSchema,
469
487
  PublicAdmissionRequestSchema,
470
488
  PublicSpaceArrivalSchema,
@@ -530,6 +548,12 @@ import {
530
548
  RenegotiateCloudflareSFUPathParamsSchema,
531
549
  RenegotiateCloudflareSFURequestBodySchema,
532
550
  RenegotiateCloudflareSFUResponseSchema,
551
+ ReportsDeliveryFailedError,
552
+ ReportsDeliveryFailedErrorSchema,
553
+ ReportsDeliveryFailedErrorWireSchema,
554
+ ReportsUnavailableError,
555
+ ReportsUnavailableErrorSchema,
556
+ ReportsUnavailableErrorWireSchema,
533
557
  RequestIdempotencyConflictError,
534
558
  RequestIdempotencyConflictErrorSchema,
535
559
  RequestIdempotencyConflictErrorWireSchema,
@@ -585,6 +609,11 @@ import {
585
609
  RotateWebhookEndpointSecretResponseSchema,
586
610
  RotateWebhookSecretRequestSchema,
587
611
  RotateWebhookSecretResponseSchema,
612
+ SendProblemReport429ResponseHeadersSchema,
613
+ SendProblemReportErrorSchema,
614
+ SendProblemReportPathParamsSchema,
615
+ SendProblemReportRequestBodySchema,
616
+ SendProblemReportResponseSchema,
588
617
  ServiceInternalError,
589
618
  ServiceInternalErrorSchema,
590
619
  ServiceInternalErrorWireSchema,
@@ -598,6 +627,7 @@ import {
598
627
  SetEpisodeDeadlineRequestHeadersSchema,
599
628
  SetEpisodeDeadlineRequestSchema,
600
629
  SetEpisodeDeadlineResponseSchema,
630
+ SpaceActivityListSchema,
601
631
  SpaceIdSchema,
602
632
  SpaceInvalidArchiveFilterError,
603
633
  SpaceInvalidArchiveFilterErrorSchema,
@@ -798,9 +828,8 @@ import {
798
828
  WhiteboardStorageUnavailableErrorSchema,
799
829
  WhiteboardStorageUnavailableErrorWireSchema,
800
830
  createChalkEffectClient
801
- } from "./chunk-3ZN7IXOZ.js";
802
- import "./chunk-DWKTGBHR.js";
803
- import "./chunk-K7PNW3KI.js";
831
+ } from "./chunk-HO4745TX.js";
832
+ import "./chunk-D2GXPX2P.js";
804
833
 
805
834
  // src/space-client/effect.ts
806
835
  import { Context, Effect, Exit, Layer, Scope } from "effect";
@@ -902,6 +931,10 @@ export {
902
931
  ArriveBySpacePublicInviteRequestHeadersSchema,
903
932
  ArriveBySpacePublicInviteResponseSchema,
904
933
  AuditLogIdSchema,
934
+ CancelEpisodeParticipantJoin429ResponseHeadersSchema,
935
+ CancelEpisodeParticipantJoinErrorSchema,
936
+ CancelEpisodeParticipantJoinPathParamsSchema,
937
+ CancelEpisodeParticipantJoinResponseSchema,
905
938
  CancelRecordingPreparationRequestSchema,
906
939
  CancelSpaceRecordingPreparation429ResponseHeadersSchema,
907
940
  CancelSpaceRecordingPreparationErrorSchema,
@@ -909,6 +942,7 @@ export {
909
942
  CancelSpaceRecordingPreparationRequestBodySchema,
910
943
  CancelSpaceRecordingPreparationResponseSchema,
911
944
  ChalkApi,
945
+ ChalkCodePointLimits,
912
946
  ChalkOperationPolicies,
913
947
  ChatAttachmentDownloadSchema,
914
948
  ChatAttachmentIdConflictError,
@@ -1077,6 +1111,9 @@ export {
1077
1111
  GetEpisodeErrorSchema,
1078
1112
  GetEpisodePathParamsSchema,
1079
1113
  GetEpisodeResponseSchema,
1114
+ GetProblemReportAvailabilityErrorSchema,
1115
+ GetProblemReportAvailabilityPathParamsSchema,
1116
+ GetProblemReportAvailabilityResponseSchema,
1080
1117
  GetRecordingErrorSchema,
1081
1118
  GetRecordingPathParamsSchema,
1082
1119
  GetRecordingResponseSchema,
@@ -1156,6 +1193,11 @@ export {
1156
1193
  ListRecordingsPathParamsSchema,
1157
1194
  ListRecordingsQueryParamsSchema,
1158
1195
  ListRecordingsResponseSchema,
1196
+ ListSpaceActivity429ResponseHeadersSchema,
1197
+ ListSpaceActivityErrorSchema,
1198
+ ListSpaceActivityPathParamsSchema,
1199
+ ListSpaceActivityQueryParamsSchema,
1200
+ ListSpaceActivityResponseSchema,
1159
1201
  ListSpaceLiveEpisodes429ResponseHeadersSchema,
1160
1202
  ListSpaceLiveEpisodesErrorSchema,
1161
1203
  ListSpaceLiveEpisodesPathParamsSchema,
@@ -1266,6 +1308,7 @@ export {
1266
1308
  ParticipantInvalidIdError,
1267
1309
  ParticipantInvalidIdErrorSchema,
1268
1310
  ParticipantInvalidIdErrorWireSchema,
1311
+ ParticipantJoinCancellationSchema,
1269
1312
  ParticipantLifecycleSchema,
1270
1313
  ParticipantNotActiveError,
1271
1314
  ParticipantNotActiveErrorSchema,
@@ -1288,6 +1331,9 @@ export {
1288
1331
  PrepareSpaceRecordingPathParamsSchema,
1289
1332
  PrepareSpaceRecordingRequestBodySchema,
1290
1333
  PrepareSpaceRecordingResponseSchema,
1334
+ ProblemReportAvailabilitySchema,
1335
+ ProblemReportRequestSchema,
1336
+ ProblemReportSentSchema,
1291
1337
  PublicAdmissionRequestPageSchema,
1292
1338
  PublicAdmissionRequestSchema,
1293
1339
  PublicSpaceArrivalSchema,
@@ -1353,6 +1399,12 @@ export {
1353
1399
  RenegotiateCloudflareSFUPathParamsSchema,
1354
1400
  RenegotiateCloudflareSFURequestBodySchema,
1355
1401
  RenegotiateCloudflareSFUResponseSchema,
1402
+ ReportsDeliveryFailedError,
1403
+ ReportsDeliveryFailedErrorSchema,
1404
+ ReportsDeliveryFailedErrorWireSchema,
1405
+ ReportsUnavailableError,
1406
+ ReportsUnavailableErrorSchema,
1407
+ ReportsUnavailableErrorWireSchema,
1356
1408
  RequestIdempotencyConflictError,
1357
1409
  RequestIdempotencyConflictErrorSchema,
1358
1410
  RequestIdempotencyConflictErrorWireSchema,
@@ -1408,6 +1460,11 @@ export {
1408
1460
  RotateWebhookEndpointSecretResponseSchema,
1409
1461
  RotateWebhookSecretRequestSchema,
1410
1462
  RotateWebhookSecretResponseSchema,
1463
+ SendProblemReport429ResponseHeadersSchema,
1464
+ SendProblemReportErrorSchema,
1465
+ SendProblemReportPathParamsSchema,
1466
+ SendProblemReportRequestBodySchema,
1467
+ SendProblemReportResponseSchema,
1411
1468
  ServiceInternalError,
1412
1469
  ServiceInternalErrorSchema,
1413
1470
  ServiceInternalErrorWireSchema,
@@ -1421,6 +1478,7 @@ export {
1421
1478
  SetEpisodeDeadlineRequestHeadersSchema,
1422
1479
  SetEpisodeDeadlineRequestSchema,
1423
1480
  SetEpisodeDeadlineResponseSchema,
1481
+ SpaceActivityListSchema,
1424
1482
  SpaceClientCoreService,
1425
1483
  SpaceIdSchema,
1426
1484
  SpaceInvalidArchiveFilterError,