@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.
- package/CHANGELOG.md +125 -0
- package/dist/chat-files/types.d.ts +3 -0
- package/dist/{chunk-RJRSLXVT.js → chunk-BCO3AZUB.js} +647 -221
- package/dist/{chunk-K7PNW3KI.js → chunk-D2GXPX2P.js} +143 -13
- package/dist/{chunk-KHHULLBZ.js → chunk-DHGAKJXP.js} +1 -1
- package/dist/{chunk-3ZN7IXOZ.js → chunk-HO4745TX.js} +250 -2
- package/dist/client.d.ts +201 -0
- package/dist/connection/dependencies.d.ts +3 -0
- package/dist/connection/diagnostics.d.ts +3 -2
- package/dist/connection/lifecycle.d.ts +1 -0
- package/dist/connection/types.d.ts +2 -0
- package/dist/effect.js +62 -4
- package/dist/generated/http-api.d.ts +197 -0
- package/dist/generated/schemas.d.ts +366 -0
- package/dist/generated/sync.d.ts +74 -3
- package/dist/generated/whiteboard-v1.d.ts +71 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -14
- package/dist/public-invites/index.js +2 -2
- package/dist/space-client/reload-rejoin.d.ts +1 -1
- package/dist/space-client/types.d.ts +8 -1
- package/dist/sync/connect-diagnostics.d.ts +10 -0
- package/dist/sync/index.js +1 -1
- package/dist/sync/types.d.ts +1 -0
- package/dist/sync/v1-client.d.ts +2 -0
- package/dist/sync/v1-types.d.ts +4 -0
- package/dist/whiteboard/index.d.ts +2 -5
- package/dist/whiteboard/types.d.ts +26 -3
- package/dist/whiteboard/v1-client.d.ts +3 -1
- package/dist/whiteboard/v1-codec.d.ts +5 -1
- package/dist/whiteboard/v1-multipart.d.ts +1 -1
- package/dist/whiteboard/view-bounds.d.ts +5 -0
- package/dist/whiteboard/view-versions.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
// src/generated/schemas.ts
|
|
2
2
|
import { Schema, SchemaGetter } from "effect";
|
|
3
|
+
var ChalkCodePointLimits = {
|
|
4
|
+
"CreateSpaceRequest.name": 120,
|
|
5
|
+
"CreateTenantRequest.external_id": 512,
|
|
6
|
+
"ProblemReportRequest.description": 1e3,
|
|
7
|
+
"ProblemReportRequest.diagnostics": 2e3,
|
|
8
|
+
"Tenant.external_id": 512,
|
|
9
|
+
"UpdateSpaceRequest.name": 120
|
|
10
|
+
};
|
|
3
11
|
var isCodePointLengthBetween = (minimum, maximum) => Schema.makeFilter(
|
|
4
12
|
(input) => {
|
|
5
13
|
const length = Array.from(input).length;
|
|
@@ -262,7 +270,7 @@ var CreateSpaceRequestSchema = Schema.Struct({
|
|
|
262
270
|
maximum_episode_duration_seconds: Schema.Number,
|
|
263
271
|
media_plane: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
264
272
|
metadata: Schema.optional(Schema.Unknown),
|
|
265
|
-
name: Schema.String.check(
|
|
273
|
+
name: Schema.String.check(isCodePointLengthBetween(1, 120)),
|
|
266
274
|
recording_policy: Schema.optional(Schema.NullOr(Schema.String.check(Schema.isMinLength(1)))),
|
|
267
275
|
recurring_policy: Schema.optional(Schema.Unknown),
|
|
268
276
|
slug: Schema.String.check(Schema.isMinLength(1)),
|
|
@@ -420,6 +428,9 @@ var MembershipListSchema = Schema.Struct({
|
|
|
420
428
|
memberships: Schema.Array(MembershipSchema),
|
|
421
429
|
pagination: PaginationSchema
|
|
422
430
|
});
|
|
431
|
+
var ParticipantJoinCancellationSchema = Schema.Struct({
|
|
432
|
+
cancelled: Schema.Boolean
|
|
433
|
+
});
|
|
423
434
|
var ParticipantLifecycleSchema = Schema.Struct({
|
|
424
435
|
access: Schema.optional(Schema.NullOr(AccessGrantSchema)),
|
|
425
436
|
admission_request: Schema.optional(
|
|
@@ -489,6 +500,16 @@ var PrepareRecordingRequestSchema = Schema.Struct({
|
|
|
489
500
|
expected_revision: Schema.Number,
|
|
490
501
|
starts_at: DateTimeStringSchema
|
|
491
502
|
});
|
|
503
|
+
var ProblemReportAvailabilitySchema = Schema.Struct({
|
|
504
|
+
available: Schema.Boolean
|
|
505
|
+
});
|
|
506
|
+
var ProblemReportRequestSchema = Schema.Struct({
|
|
507
|
+
description: Schema.String.check(isCodePointLengthBetween(1, 1e3), Schema.isPattern(new RegExp("[^\\t\\n\\v\\f\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]"))),
|
|
508
|
+
diagnostics: Schema.optional(Schema.String.check(isCodePointLengthBetween(0, 2e3)))
|
|
509
|
+
});
|
|
510
|
+
var ProblemReportSentSchema = Schema.Struct({
|
|
511
|
+
sent: Schema.Boolean
|
|
512
|
+
});
|
|
492
513
|
var PublicAdmissionRequestSchema = Schema.Struct({
|
|
493
514
|
decision_action: Schema.optional(Schema.String),
|
|
494
515
|
decision_state: Schema.String,
|
|
@@ -544,6 +565,8 @@ var RecordingSourceSchema = Schema.Struct({
|
|
|
544
565
|
stop_reason: Schema.optional(Schema.Literal("duration_limit"))
|
|
545
566
|
});
|
|
546
567
|
var RecordingTranscriptionPreparationSchema = Schema.Struct({
|
|
568
|
+
expires_at: Schema.optional(Schema.NullOr(DateTimeStringSchema)),
|
|
569
|
+
failure_code: Schema.optional(Schema.String),
|
|
547
570
|
status: Schema.Literals(["none", "pending", "ready", "failed", "expired"])
|
|
548
571
|
});
|
|
549
572
|
var RecordingSchema = Schema.Struct({
|
|
@@ -643,6 +666,40 @@ var SpaceSchema = Schema.Struct({
|
|
|
643
666
|
transcription_policy: Schema.String,
|
|
644
667
|
updated_at: DateTimeStringSchema
|
|
645
668
|
});
|
|
669
|
+
var SpaceActivityListSchema = Schema.Struct({
|
|
670
|
+
spaces: Schema.Array(
|
|
671
|
+
Schema.Struct({
|
|
672
|
+
archived: Schema.Boolean,
|
|
673
|
+
latest_episode: Schema.NullOr(
|
|
674
|
+
Schema.Struct({
|
|
675
|
+
ended_at: Schema.NullOr(DateTimeStringSchema),
|
|
676
|
+
episode_id: EpisodeIdSchema,
|
|
677
|
+
started_at: DateTimeStringSchema,
|
|
678
|
+
status: Schema.String
|
|
679
|
+
})
|
|
680
|
+
),
|
|
681
|
+
live_episode: Schema.NullOr(
|
|
682
|
+
Schema.Struct({
|
|
683
|
+
episode_id: EpisodeIdSchema,
|
|
684
|
+
participant_count: Schema.Number,
|
|
685
|
+
participants: Schema.Array(
|
|
686
|
+
Schema.Struct({
|
|
687
|
+
display_name: Schema.String,
|
|
688
|
+
participant_id: ParticipantIdSchema
|
|
689
|
+
})
|
|
690
|
+
)
|
|
691
|
+
})
|
|
692
|
+
),
|
|
693
|
+
recent_participants: Schema.Array(
|
|
694
|
+
Schema.Struct({
|
|
695
|
+
display_name: Schema.String,
|
|
696
|
+
participant_id: ParticipantIdSchema
|
|
697
|
+
})
|
|
698
|
+
),
|
|
699
|
+
space_id: SpaceIdSchema
|
|
700
|
+
})
|
|
701
|
+
)
|
|
702
|
+
});
|
|
646
703
|
var SpaceListSchema = Schema.Struct({
|
|
647
704
|
pagination: PaginationSchema,
|
|
648
705
|
spaces: Schema.Array(SpaceSchema)
|
|
@@ -700,6 +757,7 @@ var TenantSchema = Schema.Struct({
|
|
|
700
757
|
media_plane_provider_config: Schema.NullOr(MediaPlaneProviderConfigSchema),
|
|
701
758
|
name: Schema.String,
|
|
702
759
|
provider_policy_version: Schema.String,
|
|
760
|
+
recording_render_mode: Schema.Literals(["on_demand", "automatic"]),
|
|
703
761
|
recording_retention_seconds: Schema.Number,
|
|
704
762
|
storage_provider_config: Schema.NullOr(StorageProviderConfigSchema),
|
|
705
763
|
transcript_retention_seconds: Schema.Number,
|
|
@@ -788,7 +846,7 @@ var UpdateSpaceRequestSchema = Schema.Struct({
|
|
|
788
846
|
maximum_episode_duration_seconds: Schema.optional(Schema.Number),
|
|
789
847
|
media_plane: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
790
848
|
metadata: Schema.optional(Schema.Unknown),
|
|
791
|
-
name: Schema.optional(Schema.String.check(
|
|
849
|
+
name: Schema.optional(Schema.String.check(isCodePointLengthBetween(1, 120))),
|
|
792
850
|
recording_policy: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
793
851
|
recurring_policy: Schema.optional(Schema.Unknown),
|
|
794
852
|
slug: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
@@ -805,6 +863,7 @@ var UpdateTenantRequestSchema = Schema.Struct({
|
|
|
805
863
|
media_plane_provider_config: Schema.optional(Schema.NullOr(MediaPlaneProviderConfigSchema)),
|
|
806
864
|
name: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
807
865
|
provider_policy_version: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
866
|
+
recording_render_mode: Schema.optional(Schema.Literals(["on_demand", "automatic"])),
|
|
808
867
|
recording_retention_seconds: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
809
868
|
storage_provider_config: Schema.optional(Schema.NullOr(StorageProviderConfigSchema)),
|
|
810
869
|
transcript_retention_seconds: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
@@ -1030,6 +1089,18 @@ var ArriveBySpacePublicInvite429ResponseHeadersSchema = Schema.Struct({
|
|
|
1030
1089
|
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1031
1090
|
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1032
1091
|
});
|
|
1092
|
+
var CancelEpisodeParticipantJoinPathParamsSchema = Schema.Struct({
|
|
1093
|
+
episode_id: EpisodeIdSchema,
|
|
1094
|
+
participant_id: ParticipantIdSchema,
|
|
1095
|
+
space_id: SpaceIdSchema,
|
|
1096
|
+
tenant_id: TenantIdSchema
|
|
1097
|
+
});
|
|
1098
|
+
var CancelEpisodeParticipantJoinResponseSchema = ParticipantJoinCancellationSchema;
|
|
1099
|
+
var CancelEpisodeParticipantJoin429ResponseHeadersSchema = Schema.Struct({
|
|
1100
|
+
"Retry-After": RetryAfterHeaderSchema,
|
|
1101
|
+
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1102
|
+
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1103
|
+
});
|
|
1033
1104
|
var CancelSpaceRecordingPreparationPathParamsSchema = Schema.Struct({
|
|
1034
1105
|
space_id: SpaceIdSchema,
|
|
1035
1106
|
tenant_id: TenantIdSchema
|
|
@@ -1245,6 +1316,10 @@ var GetEpisodeAttendance429ResponseHeadersSchema = Schema.Struct({
|
|
|
1245
1316
|
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1246
1317
|
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1247
1318
|
});
|
|
1319
|
+
var GetProblemReportAvailabilityPathParamsSchema = Schema.Struct({
|
|
1320
|
+
tenant_id: TenantIdSchema
|
|
1321
|
+
});
|
|
1322
|
+
var GetProblemReportAvailabilityResponseSchema = ProblemReportAvailabilitySchema;
|
|
1248
1323
|
var GetRecordingPathParamsSchema = Schema.Struct({
|
|
1249
1324
|
recording_id: RecordingIdSchema,
|
|
1250
1325
|
tenant_id: TenantIdSchema
|
|
@@ -1415,6 +1490,18 @@ var ListRecordingsQueryParamsSchema = Schema.Struct({
|
|
|
1415
1490
|
space_id: Schema.optional(SpaceIdSchema)
|
|
1416
1491
|
});
|
|
1417
1492
|
var ListRecordingsResponseSchema = RecordingListSchema;
|
|
1493
|
+
var ListSpaceActivityPathParamsSchema = Schema.Struct({
|
|
1494
|
+
tenant_id: TenantIdSchema
|
|
1495
|
+
});
|
|
1496
|
+
var ListSpaceActivityQueryParamsSchema = Schema.Struct({
|
|
1497
|
+
space_ids: Schema.String
|
|
1498
|
+
});
|
|
1499
|
+
var ListSpaceActivityResponseSchema = SpaceActivityListSchema;
|
|
1500
|
+
var ListSpaceActivity429ResponseHeadersSchema = Schema.Struct({
|
|
1501
|
+
"Retry-After": RetryAfterHeaderSchema,
|
|
1502
|
+
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1503
|
+
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1504
|
+
});
|
|
1418
1505
|
var ListSpaceLiveEpisodesPathParamsSchema = Schema.Struct({
|
|
1419
1506
|
tenant_id: TenantIdSchema
|
|
1420
1507
|
});
|
|
@@ -1680,6 +1767,16 @@ var RotateWebhookEndpointSecret429ResponseHeadersSchema = Schema.Struct({
|
|
|
1680
1767
|
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1681
1768
|
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1682
1769
|
});
|
|
1770
|
+
var SendProblemReportPathParamsSchema = Schema.Struct({
|
|
1771
|
+
tenant_id: TenantIdSchema
|
|
1772
|
+
});
|
|
1773
|
+
var SendProblemReportRequestBodySchema = ProblemReportRequestSchema;
|
|
1774
|
+
var SendProblemReportResponseSchema = ProblemReportSentSchema;
|
|
1775
|
+
var SendProblemReport429ResponseHeadersSchema = Schema.Struct({
|
|
1776
|
+
"Retry-After": RetryAfterHeaderSchema,
|
|
1777
|
+
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1778
|
+
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1779
|
+
});
|
|
1683
1780
|
var SetEpisodeDeadlinePathParamsSchema = Schema.Struct({
|
|
1684
1781
|
episode_id: EpisodeIdSchema,
|
|
1685
1782
|
space_id: SpaceIdSchema,
|
|
@@ -2925,6 +3022,44 @@ var RecordingPreparationPolicyDeniedErrorSchema = RecordingPreparationPolicyDeni
|
|
|
2925
3022
|
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
2926
3023
|
})
|
|
2927
3024
|
);
|
|
3025
|
+
var ReportsDeliveryFailedError = class extends Schema.TaggedErrorClass()("ReportsDeliveryFailedError", {
|
|
3026
|
+
error: Schema.Struct({
|
|
3027
|
+
code: Schema.Literal("reports.delivery_failed"),
|
|
3028
|
+
message: Schema.String
|
|
3029
|
+
})
|
|
3030
|
+
}) {
|
|
3031
|
+
};
|
|
3032
|
+
var ReportsDeliveryFailedErrorWireSchema = Schema.Struct({
|
|
3033
|
+
error: Schema.Struct({
|
|
3034
|
+
code: Schema.Literal("reports.delivery_failed"),
|
|
3035
|
+
message: Schema.String
|
|
3036
|
+
})
|
|
3037
|
+
});
|
|
3038
|
+
var ReportsDeliveryFailedErrorSchema = ReportsDeliveryFailedErrorWireSchema.pipe(
|
|
3039
|
+
Schema.decodeTo(ReportsDeliveryFailedError, {
|
|
3040
|
+
decode: SchemaGetter.transform((wire) => ({ _tag: "ReportsDeliveryFailedError", ...wire })),
|
|
3041
|
+
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
3042
|
+
})
|
|
3043
|
+
);
|
|
3044
|
+
var ReportsUnavailableError = class extends Schema.TaggedErrorClass()("ReportsUnavailableError", {
|
|
3045
|
+
error: Schema.Struct({
|
|
3046
|
+
code: Schema.Literal("reports.unavailable"),
|
|
3047
|
+
message: Schema.String
|
|
3048
|
+
})
|
|
3049
|
+
}) {
|
|
3050
|
+
};
|
|
3051
|
+
var ReportsUnavailableErrorWireSchema = Schema.Struct({
|
|
3052
|
+
error: Schema.Struct({
|
|
3053
|
+
code: Schema.Literal("reports.unavailable"),
|
|
3054
|
+
message: Schema.String
|
|
3055
|
+
})
|
|
3056
|
+
});
|
|
3057
|
+
var ReportsUnavailableErrorSchema = ReportsUnavailableErrorWireSchema.pipe(
|
|
3058
|
+
Schema.decodeTo(ReportsUnavailableError, {
|
|
3059
|
+
decode: SchemaGetter.transform((wire) => ({ _tag: "ReportsUnavailableError", ...wire })),
|
|
3060
|
+
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
3061
|
+
})
|
|
3062
|
+
);
|
|
2928
3063
|
var RequestIdempotencyConflictError = class extends Schema.TaggedErrorClass()("RequestIdempotencyConflictError", {
|
|
2929
3064
|
error: Schema.Struct({
|
|
2930
3065
|
code: Schema.Literal("request.idempotency_conflict"),
|
|
@@ -3979,6 +4114,17 @@ var ArriveBySpacePublicInviteErrorSchema = Schema.Union([
|
|
|
3979
4114
|
SpacePublicInviteUnavailableErrorSchema,
|
|
3980
4115
|
TenantLiveEpisodeLimitReachedErrorSchema
|
|
3981
4116
|
]);
|
|
4117
|
+
var CancelEpisodeParticipantJoinErrorSchema = Schema.Union([
|
|
4118
|
+
AccessForbiddenErrorSchema,
|
|
4119
|
+
AccessUnauthenticatedErrorSchema,
|
|
4120
|
+
EpisodeInvalidIdErrorSchema,
|
|
4121
|
+
ParticipantInvalidIdErrorSchema,
|
|
4122
|
+
RequestInvalidErrorSchema,
|
|
4123
|
+
RequestRateLimitedErrorSchema,
|
|
4124
|
+
ServiceInternalErrorSchema,
|
|
4125
|
+
ServiceUnavailableErrorSchema,
|
|
4126
|
+
SpaceInvalidIdErrorSchema
|
|
4127
|
+
]);
|
|
3982
4128
|
var CancelSpaceRecordingPreparationErrorSchema = Schema.Union([
|
|
3983
4129
|
AccessForbiddenErrorSchema,
|
|
3984
4130
|
AccessUnauthenticatedErrorSchema,
|
|
@@ -4268,6 +4414,7 @@ var GetEpisodeErrorSchema = Schema.Union([
|
|
|
4268
4414
|
SpaceNotFoundErrorSchema,
|
|
4269
4415
|
TenantInvalidIdErrorSchema
|
|
4270
4416
|
]);
|
|
4417
|
+
var GetProblemReportAvailabilityErrorSchema = TenantInvalidIdErrorSchema;
|
|
4271
4418
|
var GetRecordingErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, RecordingInvalidIdErrorSchema, RecordingNotFoundErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4272
4419
|
var GetSpaceErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, SpaceInvalidIdErrorSchema, SpaceNotFoundErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4273
4420
|
var GetSpacePublicInviteArrivalErrorSchema = Schema.Union([
|
|
@@ -4472,6 +4619,7 @@ var ListRecordingsErrorSchema = Schema.Union([
|
|
|
4472
4619
|
SpaceInvalidIdErrorSchema,
|
|
4473
4620
|
TenantInvalidIdErrorSchema
|
|
4474
4621
|
]);
|
|
4622
|
+
var ListSpaceActivityErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, EpisodeInvalidSpaceIdsErrorSchema, RequestRateLimitedErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, SpaceNotFoundErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4475
4623
|
var ListSpaceLiveEpisodesErrorSchema = Schema.Union([
|
|
4476
4624
|
AccessForbiddenErrorSchema,
|
|
4477
4625
|
AccessUnauthenticatedErrorSchema,
|
|
@@ -4744,6 +4892,18 @@ var RotateWebhookEndpointSecretErrorSchema = Schema.Union([
|
|
|
4744
4892
|
WebhookInvalidUrlErrorSchema,
|
|
4745
4893
|
WebhookUnsafeUrlErrorSchema
|
|
4746
4894
|
]);
|
|
4895
|
+
var SendProblemReportErrorSchema = Schema.Union([
|
|
4896
|
+
AccessForbiddenErrorSchema,
|
|
4897
|
+
AccessUnauthenticatedErrorSchema,
|
|
4898
|
+
ReportsDeliveryFailedErrorSchema,
|
|
4899
|
+
ReportsUnavailableErrorSchema,
|
|
4900
|
+
RequestInvalidErrorSchema,
|
|
4901
|
+
RequestPayloadTooLargeErrorSchema,
|
|
4902
|
+
RequestRateLimitedErrorSchema,
|
|
4903
|
+
ServiceInternalErrorSchema,
|
|
4904
|
+
ServiceUnavailableErrorSchema,
|
|
4905
|
+
TenantInvalidIdErrorSchema
|
|
4906
|
+
]);
|
|
4747
4907
|
var SetEpisodeDeadlineErrorSchema = Schema.Union([
|
|
4748
4908
|
AccessForbiddenErrorSchema,
|
|
4749
4909
|
AccessUnauthenticatedErrorSchema,
|
|
@@ -4882,6 +5042,7 @@ var ChalkOperationPolicies = {
|
|
|
4882
5042
|
approveSpacePublicAdmissionRequest: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4883
5043
|
archiveSpace: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4884
5044
|
arriveBySpacePublicInvite: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5045
|
+
cancelEpisodeParticipantJoin: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4885
5046
|
cancelSpaceRecordingPreparation: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4886
5047
|
closeCloudflareSFUTracks: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4887
5048
|
createAPIKey: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
@@ -4911,6 +5072,7 @@ var ChalkOperationPolicies = {
|
|
|
4911
5072
|
issueEpisodeParticipantSyncToken: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4912
5073
|
leaveSpacePublicInviteArrival: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4913
5074
|
listEpisodes: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
5075
|
+
listSpaceActivity: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4914
5076
|
listSpaceLiveEpisodes: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4915
5077
|
listSpacePublicAdmissionRequests: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4916
5078
|
listTenants: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
@@ -4930,6 +5092,7 @@ var ChalkOperationPolicies = {
|
|
|
4930
5092
|
rotateAPIKey: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4931
5093
|
rotateSpacePublicInvite: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4932
5094
|
rotateWebhookEndpointSecret: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5095
|
+
sendProblemReport: { maxBodyBytes: 37024, rateLimit: { limit: 3, policy: "problem_reports.participant", windowSeconds: 3600 } },
|
|
4933
5096
|
setEpisodeDeadline: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4934
5097
|
testWebhookEndpoint: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4935
5098
|
updateMembership: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
@@ -5114,6 +5277,12 @@ var defaultGroup = HttpApiGroup.make("default").add(
|
|
|
5114
5277
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5115
5278
|
]
|
|
5116
5279
|
})
|
|
5280
|
+
).add(
|
|
5281
|
+
HttpApiEndpoint.get("getProblemReportAvailability", "/v1/tenants/:tenant_id/problem-reports/availability", {
|
|
5282
|
+
params: GetProblemReportAvailabilityPathParamsSchema,
|
|
5283
|
+
success: GetProblemReportAvailabilityResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
5284
|
+
error: [TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400))]
|
|
5285
|
+
})
|
|
5117
5286
|
).add(
|
|
5118
5287
|
HttpApiEndpoint.get("getWebhookDelivery", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/deliveries/:delivery_id", {
|
|
5119
5288
|
params: GetWebhookDeliveryPathParamsSchema,
|
|
@@ -5431,6 +5600,24 @@ var defaultGroup = HttpApiGroup.make("default").add(
|
|
|
5431
5600
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5432
5601
|
]
|
|
5433
5602
|
})
|
|
5603
|
+
).add(
|
|
5604
|
+
HttpApiEndpoint.post("sendProblemReport", "/v1/tenants/:tenant_id/problem-reports", {
|
|
5605
|
+
params: SendProblemReportPathParamsSchema,
|
|
5606
|
+
payload: SendProblemReportRequestBodySchema,
|
|
5607
|
+
success: SendProblemReportResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
5608
|
+
error: [
|
|
5609
|
+
RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5610
|
+
TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5611
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
5612
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
5613
|
+
RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
|
|
5614
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
5615
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
5616
|
+
ReportsDeliveryFailedErrorSchema.pipe(HttpApiSchema.status(502)),
|
|
5617
|
+
ReportsUnavailableErrorSchema.pipe(HttpApiSchema.status(503)),
|
|
5618
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5619
|
+
]
|
|
5620
|
+
})
|
|
5434
5621
|
).add(
|
|
5435
5622
|
HttpApiEndpoint.post("testWebhookEndpoint", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/test", {
|
|
5436
5623
|
params: TestWebhookEndpointPathParamsSchema,
|
|
@@ -5527,6 +5714,22 @@ var episodesGroup = HttpApiGroup.make("episodes").add(
|
|
|
5527
5714
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5528
5715
|
]
|
|
5529
5716
|
})
|
|
5717
|
+
).add(
|
|
5718
|
+
HttpApiEndpoint.post("cancelEpisodeParticipantJoin", "/v1/tenants/:tenant_id/spaces/:space_id/episodes/:episode_id/participants/:participant_id/cancel-join", {
|
|
5719
|
+
params: CancelEpisodeParticipantJoinPathParamsSchema,
|
|
5720
|
+
success: CancelEpisodeParticipantJoinResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
5721
|
+
error: [
|
|
5722
|
+
EpisodeInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5723
|
+
ParticipantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5724
|
+
RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5725
|
+
SpaceInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5726
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
5727
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
5728
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
5729
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
5730
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5731
|
+
]
|
|
5732
|
+
})
|
|
5530
5733
|
).add(
|
|
5531
5734
|
HttpApiEndpoint.post("createEpisode", "/v1/tenants/:tenant_id/spaces/:space_id/episodes", {
|
|
5532
5735
|
params: CreateEpisodePathParamsSchema,
|
|
@@ -6061,6 +6264,22 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
|
|
|
6061
6264
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6062
6265
|
]
|
|
6063
6266
|
})
|
|
6267
|
+
).add(
|
|
6268
|
+
HttpApiEndpoint.get("listSpaceActivity", "/v1/tenants/:tenant_id/space-activity", {
|
|
6269
|
+
params: ListSpaceActivityPathParamsSchema,
|
|
6270
|
+
query: ListSpaceActivityQueryParamsSchema,
|
|
6271
|
+
success: ListSpaceActivityResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
6272
|
+
error: [
|
|
6273
|
+
EpisodeInvalidSpaceIdsErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6274
|
+
TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6275
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
6276
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
6277
|
+
SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6278
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
6279
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
6280
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6281
|
+
]
|
|
6282
|
+
})
|
|
6064
6283
|
).add(
|
|
6065
6284
|
HttpApiEndpoint.get("listSpacePublicAdmissionRequests", "/v1/tenants/:tenant_id/spaces/:space_id/public-admission-requests", {
|
|
6066
6285
|
params: ListSpacePublicAdmissionRequestsPathParamsSchema,
|
|
@@ -6631,6 +6850,7 @@ function isRecord(value) {
|
|
|
6631
6850
|
}
|
|
6632
6851
|
|
|
6633
6852
|
export {
|
|
6853
|
+
ChalkCodePointLimits,
|
|
6634
6854
|
DateTimeStringSchema,
|
|
6635
6855
|
UserIdSchema,
|
|
6636
6856
|
UUIDSchema,
|
|
@@ -6683,9 +6903,13 @@ export {
|
|
|
6683
6903
|
MembershipIdSchema,
|
|
6684
6904
|
MembershipSchema,
|
|
6685
6905
|
MembershipListSchema,
|
|
6906
|
+
ParticipantJoinCancellationSchema,
|
|
6686
6907
|
ParticipantLifecycleSchema,
|
|
6687
6908
|
ParticipantRemovalSchema,
|
|
6688
6909
|
PrepareRecordingRequestSchema,
|
|
6910
|
+
ProblemReportAvailabilitySchema,
|
|
6911
|
+
ProblemReportRequestSchema,
|
|
6912
|
+
ProblemReportSentSchema,
|
|
6689
6913
|
PublicAdmissionRequestSchema,
|
|
6690
6914
|
PublicAdmissionRequestPageSchema,
|
|
6691
6915
|
PublicSpaceArrivalSchema,
|
|
@@ -6708,6 +6932,7 @@ export {
|
|
|
6708
6932
|
RotateWebhookSecretResponseSchema,
|
|
6709
6933
|
SetEpisodeDeadlineRequestSchema,
|
|
6710
6934
|
SpaceSchema,
|
|
6935
|
+
SpaceActivityListSchema,
|
|
6711
6936
|
SpaceListSchema,
|
|
6712
6937
|
SpaceLiveEpisodeListSchema,
|
|
6713
6938
|
SpacePublicInviteSchema,
|
|
@@ -6758,6 +6983,9 @@ export {
|
|
|
6758
6983
|
ArriveBySpacePublicInviteRequestBodySchema,
|
|
6759
6984
|
ArriveBySpacePublicInviteResponseSchema,
|
|
6760
6985
|
ArriveBySpacePublicInvite429ResponseHeadersSchema,
|
|
6986
|
+
CancelEpisodeParticipantJoinPathParamsSchema,
|
|
6987
|
+
CancelEpisodeParticipantJoinResponseSchema,
|
|
6988
|
+
CancelEpisodeParticipantJoin429ResponseHeadersSchema,
|
|
6761
6989
|
CancelSpaceRecordingPreparationPathParamsSchema,
|
|
6762
6990
|
CancelSpaceRecordingPreparationRequestBodySchema,
|
|
6763
6991
|
CancelSpaceRecordingPreparationResponseSchema,
|
|
@@ -6831,6 +7059,8 @@ export {
|
|
|
6831
7059
|
GetEpisodeAttendancePathParamsSchema,
|
|
6832
7060
|
GetEpisodeAttendanceResponseSchema,
|
|
6833
7061
|
GetEpisodeAttendance429ResponseHeadersSchema,
|
|
7062
|
+
GetProblemReportAvailabilityPathParamsSchema,
|
|
7063
|
+
GetProblemReportAvailabilityResponseSchema,
|
|
6834
7064
|
GetRecordingPathParamsSchema,
|
|
6835
7065
|
GetRecordingResponseSchema,
|
|
6836
7066
|
GetSpacePathParamsSchema,
|
|
@@ -6886,6 +7116,10 @@ export {
|
|
|
6886
7116
|
ListRecordingsPathParamsSchema,
|
|
6887
7117
|
ListRecordingsQueryParamsSchema,
|
|
6888
7118
|
ListRecordingsResponseSchema,
|
|
7119
|
+
ListSpaceActivityPathParamsSchema,
|
|
7120
|
+
ListSpaceActivityQueryParamsSchema,
|
|
7121
|
+
ListSpaceActivityResponseSchema,
|
|
7122
|
+
ListSpaceActivity429ResponseHeadersSchema,
|
|
6889
7123
|
ListSpaceLiveEpisodesPathParamsSchema,
|
|
6890
7124
|
ListSpaceLiveEpisodesQueryParamsSchema,
|
|
6891
7125
|
ListSpaceLiveEpisodesResponseSchema,
|
|
@@ -6965,6 +7199,10 @@ export {
|
|
|
6965
7199
|
RotateWebhookEndpointSecretRequestBodySchema,
|
|
6966
7200
|
RotateWebhookEndpointSecretResponseSchema,
|
|
6967
7201
|
RotateWebhookEndpointSecret429ResponseHeadersSchema,
|
|
7202
|
+
SendProblemReportPathParamsSchema,
|
|
7203
|
+
SendProblemReportRequestBodySchema,
|
|
7204
|
+
SendProblemReportResponseSchema,
|
|
7205
|
+
SendProblemReport429ResponseHeadersSchema,
|
|
6968
7206
|
SetEpisodeDeadlinePathParamsSchema,
|
|
6969
7207
|
SetEpisodeDeadlineRequestHeadersSchema,
|
|
6970
7208
|
SetEpisodeDeadlineRequestBodySchema,
|
|
@@ -7178,6 +7416,12 @@ export {
|
|
|
7178
7416
|
RecordingPreparationPolicyDeniedError,
|
|
7179
7417
|
RecordingPreparationPolicyDeniedErrorWireSchema,
|
|
7180
7418
|
RecordingPreparationPolicyDeniedErrorSchema,
|
|
7419
|
+
ReportsDeliveryFailedError,
|
|
7420
|
+
ReportsDeliveryFailedErrorWireSchema,
|
|
7421
|
+
ReportsDeliveryFailedErrorSchema,
|
|
7422
|
+
ReportsUnavailableError,
|
|
7423
|
+
ReportsUnavailableErrorWireSchema,
|
|
7424
|
+
ReportsUnavailableErrorSchema,
|
|
7181
7425
|
RequestIdempotencyConflictError,
|
|
7182
7426
|
RequestIdempotencyConflictErrorWireSchema,
|
|
7183
7427
|
RequestIdempotencyConflictErrorSchema,
|
|
@@ -7339,6 +7583,7 @@ export {
|
|
|
7339
7583
|
ApproveSpacePublicAdmissionRequestErrorSchema,
|
|
7340
7584
|
ArchiveSpaceErrorSchema,
|
|
7341
7585
|
ArriveBySpacePublicInviteErrorSchema,
|
|
7586
|
+
CancelEpisodeParticipantJoinErrorSchema,
|
|
7342
7587
|
CancelSpaceRecordingPreparationErrorSchema,
|
|
7343
7588
|
CloseCloudflareSFUTracksErrorSchema,
|
|
7344
7589
|
CreateAPIKeyErrorSchema,
|
|
@@ -7359,6 +7604,7 @@ export {
|
|
|
7359
7604
|
GetChatAttachmentDownloadErrorSchema,
|
|
7360
7605
|
GetEpisodeAttendanceErrorSchema,
|
|
7361
7606
|
GetEpisodeErrorSchema,
|
|
7607
|
+
GetProblemReportAvailabilityErrorSchema,
|
|
7362
7608
|
GetRecordingErrorSchema,
|
|
7363
7609
|
GetSpaceErrorSchema,
|
|
7364
7610
|
GetSpacePublicInviteArrivalErrorSchema,
|
|
@@ -7379,6 +7625,7 @@ export {
|
|
|
7379
7625
|
ListEpisodesErrorSchema,
|
|
7380
7626
|
ListMembershipsErrorSchema,
|
|
7381
7627
|
ListRecordingsErrorSchema,
|
|
7628
|
+
ListSpaceActivityErrorSchema,
|
|
7382
7629
|
ListSpaceLiveEpisodesErrorSchema,
|
|
7383
7630
|
ListSpacePublicAdmissionRequestsErrorSchema,
|
|
7384
7631
|
ListSpacesErrorSchema,
|
|
@@ -7400,6 +7647,7 @@ export {
|
|
|
7400
7647
|
RotateAPIKeyErrorSchema,
|
|
7401
7648
|
RotateSpacePublicInviteErrorSchema,
|
|
7402
7649
|
RotateWebhookEndpointSecretErrorSchema,
|
|
7650
|
+
SendProblemReportErrorSchema,
|
|
7403
7651
|
SetEpisodeDeadlineErrorSchema,
|
|
7404
7652
|
TestWebhookEndpointErrorSchema,
|
|
7405
7653
|
UpdateMembershipErrorSchema,
|