@q9labsai/chalk-client 5.1.0 → 5.2.1
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-6LNRDKJF.js +162 -0
- package/dist/{chunk-3ZN7IXOZ.js → chunk-GA3JDPFI.js} +252 -2
- package/dist/{chunk-RJRSLXVT.js → chunk-RVUN6LW4.js} +764 -265
- package/dist/{chunk-K7PNW3KI.js → chunk-TVNI2XUZ.js} +172 -18
- package/dist/client.d.ts +205 -0
- package/dist/connection/dependencies.d.ts +3 -0
- package/dist/connection/diagnostics.d.ts +3 -2
- package/dist/connection/index.d.ts +1 -0
- 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 +201 -0
- package/dist/generated/schemas.d.ts +373 -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 +20 -14
- package/dist/public-invites/code.d.ts +1 -0
- package/dist/public-invites/index.d.ts +1 -0
- package/dist/public-invites/index.js +6 -4
- package/dist/public-invites/words.d.ts +2 -0
- package/dist/space-client/reload-rejoin.d.ts +1 -1
- package/dist/space-client/types.d.ts +10 -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 +8 -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
- package/dist/chunk-KHHULLBZ.js +0 -142
|
@@ -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,
|
|
@@ -511,6 +532,7 @@ var PublicSpaceArrivalSchema = Schema.Struct({
|
|
|
511
532
|
Schema.NullOr(
|
|
512
533
|
Schema.Struct({
|
|
513
534
|
admission_mode: Schema.String,
|
|
535
|
+
maximum_episode_duration_seconds: Schema.optional(Schema.Number),
|
|
514
536
|
name: Schema.String,
|
|
515
537
|
slug: Schema.String
|
|
516
538
|
})
|
|
@@ -525,6 +547,7 @@ var PublicSpaceCreatedSchema = Schema.Struct({
|
|
|
525
547
|
lifecycle_until: DateTimeStringSchema,
|
|
526
548
|
space: Schema.Struct({
|
|
527
549
|
admission_mode: Schema.String,
|
|
550
|
+
maximum_episode_duration_seconds: Schema.optional(Schema.Number),
|
|
528
551
|
name: Schema.String,
|
|
529
552
|
slug: Schema.String
|
|
530
553
|
})
|
|
@@ -544,6 +567,8 @@ var RecordingSourceSchema = Schema.Struct({
|
|
|
544
567
|
stop_reason: Schema.optional(Schema.Literal("duration_limit"))
|
|
545
568
|
});
|
|
546
569
|
var RecordingTranscriptionPreparationSchema = Schema.Struct({
|
|
570
|
+
expires_at: Schema.optional(Schema.NullOr(DateTimeStringSchema)),
|
|
571
|
+
failure_code: Schema.optional(Schema.String),
|
|
547
572
|
status: Schema.Literals(["none", "pending", "ready", "failed", "expired"])
|
|
548
573
|
});
|
|
549
574
|
var RecordingSchema = Schema.Struct({
|
|
@@ -643,6 +668,40 @@ var SpaceSchema = Schema.Struct({
|
|
|
643
668
|
transcription_policy: Schema.String,
|
|
644
669
|
updated_at: DateTimeStringSchema
|
|
645
670
|
});
|
|
671
|
+
var SpaceActivityListSchema = Schema.Struct({
|
|
672
|
+
spaces: Schema.Array(
|
|
673
|
+
Schema.Struct({
|
|
674
|
+
archived: Schema.Boolean,
|
|
675
|
+
latest_episode: Schema.NullOr(
|
|
676
|
+
Schema.Struct({
|
|
677
|
+
ended_at: Schema.NullOr(DateTimeStringSchema),
|
|
678
|
+
episode_id: EpisodeIdSchema,
|
|
679
|
+
started_at: DateTimeStringSchema,
|
|
680
|
+
status: Schema.String
|
|
681
|
+
})
|
|
682
|
+
),
|
|
683
|
+
live_episode: Schema.NullOr(
|
|
684
|
+
Schema.Struct({
|
|
685
|
+
episode_id: EpisodeIdSchema,
|
|
686
|
+
participant_count: Schema.Number,
|
|
687
|
+
participants: Schema.Array(
|
|
688
|
+
Schema.Struct({
|
|
689
|
+
display_name: Schema.String,
|
|
690
|
+
participant_id: ParticipantIdSchema
|
|
691
|
+
})
|
|
692
|
+
)
|
|
693
|
+
})
|
|
694
|
+
),
|
|
695
|
+
recent_participants: Schema.Array(
|
|
696
|
+
Schema.Struct({
|
|
697
|
+
display_name: Schema.String,
|
|
698
|
+
participant_id: ParticipantIdSchema
|
|
699
|
+
})
|
|
700
|
+
),
|
|
701
|
+
space_id: SpaceIdSchema
|
|
702
|
+
})
|
|
703
|
+
)
|
|
704
|
+
});
|
|
646
705
|
var SpaceListSchema = Schema.Struct({
|
|
647
706
|
pagination: PaginationSchema,
|
|
648
707
|
spaces: Schema.Array(SpaceSchema)
|
|
@@ -700,6 +759,7 @@ var TenantSchema = Schema.Struct({
|
|
|
700
759
|
media_plane_provider_config: Schema.NullOr(MediaPlaneProviderConfigSchema),
|
|
701
760
|
name: Schema.String,
|
|
702
761
|
provider_policy_version: Schema.String,
|
|
762
|
+
recording_render_mode: Schema.Literals(["on_demand", "automatic"]),
|
|
703
763
|
recording_retention_seconds: Schema.Number,
|
|
704
764
|
storage_provider_config: Schema.NullOr(StorageProviderConfigSchema),
|
|
705
765
|
transcript_retention_seconds: Schema.Number,
|
|
@@ -788,7 +848,7 @@ var UpdateSpaceRequestSchema = Schema.Struct({
|
|
|
788
848
|
maximum_episode_duration_seconds: Schema.optional(Schema.Number),
|
|
789
849
|
media_plane: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
790
850
|
metadata: Schema.optional(Schema.Unknown),
|
|
791
|
-
name: Schema.optional(Schema.String.check(
|
|
851
|
+
name: Schema.optional(Schema.String.check(isCodePointLengthBetween(1, 120))),
|
|
792
852
|
recording_policy: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
793
853
|
recurring_policy: Schema.optional(Schema.Unknown),
|
|
794
854
|
slug: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
@@ -805,6 +865,7 @@ var UpdateTenantRequestSchema = Schema.Struct({
|
|
|
805
865
|
media_plane_provider_config: Schema.optional(Schema.NullOr(MediaPlaneProviderConfigSchema)),
|
|
806
866
|
name: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
807
867
|
provider_policy_version: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
|
|
868
|
+
recording_render_mode: Schema.optional(Schema.Literals(["on_demand", "automatic"])),
|
|
808
869
|
recording_retention_seconds: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
809
870
|
storage_provider_config: Schema.optional(Schema.NullOr(StorageProviderConfigSchema)),
|
|
810
871
|
transcript_retention_seconds: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
@@ -1030,6 +1091,18 @@ var ArriveBySpacePublicInvite429ResponseHeadersSchema = Schema.Struct({
|
|
|
1030
1091
|
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1031
1092
|
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1032
1093
|
});
|
|
1094
|
+
var CancelEpisodeParticipantJoinPathParamsSchema = Schema.Struct({
|
|
1095
|
+
episode_id: EpisodeIdSchema,
|
|
1096
|
+
participant_id: ParticipantIdSchema,
|
|
1097
|
+
space_id: SpaceIdSchema,
|
|
1098
|
+
tenant_id: TenantIdSchema
|
|
1099
|
+
});
|
|
1100
|
+
var CancelEpisodeParticipantJoinResponseSchema = ParticipantJoinCancellationSchema;
|
|
1101
|
+
var CancelEpisodeParticipantJoin429ResponseHeadersSchema = Schema.Struct({
|
|
1102
|
+
"Retry-After": RetryAfterHeaderSchema,
|
|
1103
|
+
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1104
|
+
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1105
|
+
});
|
|
1033
1106
|
var CancelSpaceRecordingPreparationPathParamsSchema = Schema.Struct({
|
|
1034
1107
|
space_id: SpaceIdSchema,
|
|
1035
1108
|
tenant_id: TenantIdSchema
|
|
@@ -1245,6 +1318,10 @@ var GetEpisodeAttendance429ResponseHeadersSchema = Schema.Struct({
|
|
|
1245
1318
|
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1246
1319
|
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1247
1320
|
});
|
|
1321
|
+
var GetProblemReportAvailabilityPathParamsSchema = Schema.Struct({
|
|
1322
|
+
tenant_id: TenantIdSchema
|
|
1323
|
+
});
|
|
1324
|
+
var GetProblemReportAvailabilityResponseSchema = ProblemReportAvailabilitySchema;
|
|
1248
1325
|
var GetRecordingPathParamsSchema = Schema.Struct({
|
|
1249
1326
|
recording_id: RecordingIdSchema,
|
|
1250
1327
|
tenant_id: TenantIdSchema
|
|
@@ -1415,6 +1492,18 @@ var ListRecordingsQueryParamsSchema = Schema.Struct({
|
|
|
1415
1492
|
space_id: Schema.optional(SpaceIdSchema)
|
|
1416
1493
|
});
|
|
1417
1494
|
var ListRecordingsResponseSchema = RecordingListSchema;
|
|
1495
|
+
var ListSpaceActivityPathParamsSchema = Schema.Struct({
|
|
1496
|
+
tenant_id: TenantIdSchema
|
|
1497
|
+
});
|
|
1498
|
+
var ListSpaceActivityQueryParamsSchema = Schema.Struct({
|
|
1499
|
+
space_ids: Schema.String
|
|
1500
|
+
});
|
|
1501
|
+
var ListSpaceActivityResponseSchema = SpaceActivityListSchema;
|
|
1502
|
+
var ListSpaceActivity429ResponseHeadersSchema = Schema.Struct({
|
|
1503
|
+
"Retry-After": RetryAfterHeaderSchema,
|
|
1504
|
+
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1505
|
+
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1506
|
+
});
|
|
1418
1507
|
var ListSpaceLiveEpisodesPathParamsSchema = Schema.Struct({
|
|
1419
1508
|
tenant_id: TenantIdSchema
|
|
1420
1509
|
});
|
|
@@ -1680,6 +1769,16 @@ var RotateWebhookEndpointSecret429ResponseHeadersSchema = Schema.Struct({
|
|
|
1680
1769
|
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1681
1770
|
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1682
1771
|
});
|
|
1772
|
+
var SendProblemReportPathParamsSchema = Schema.Struct({
|
|
1773
|
+
tenant_id: TenantIdSchema
|
|
1774
|
+
});
|
|
1775
|
+
var SendProblemReportRequestBodySchema = ProblemReportRequestSchema;
|
|
1776
|
+
var SendProblemReportResponseSchema = ProblemReportSentSchema;
|
|
1777
|
+
var SendProblemReport429ResponseHeadersSchema = Schema.Struct({
|
|
1778
|
+
"Retry-After": RetryAfterHeaderSchema,
|
|
1779
|
+
"X-RateLimit-Limit": RateLimitLimitHeaderSchema,
|
|
1780
|
+
"X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
|
|
1781
|
+
});
|
|
1683
1782
|
var SetEpisodeDeadlinePathParamsSchema = Schema.Struct({
|
|
1684
1783
|
episode_id: EpisodeIdSchema,
|
|
1685
1784
|
space_id: SpaceIdSchema,
|
|
@@ -2925,6 +3024,44 @@ var RecordingPreparationPolicyDeniedErrorSchema = RecordingPreparationPolicyDeni
|
|
|
2925
3024
|
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
2926
3025
|
})
|
|
2927
3026
|
);
|
|
3027
|
+
var ReportsDeliveryFailedError = class extends Schema.TaggedErrorClass()("ReportsDeliveryFailedError", {
|
|
3028
|
+
error: Schema.Struct({
|
|
3029
|
+
code: Schema.Literal("reports.delivery_failed"),
|
|
3030
|
+
message: Schema.String
|
|
3031
|
+
})
|
|
3032
|
+
}) {
|
|
3033
|
+
};
|
|
3034
|
+
var ReportsDeliveryFailedErrorWireSchema = Schema.Struct({
|
|
3035
|
+
error: Schema.Struct({
|
|
3036
|
+
code: Schema.Literal("reports.delivery_failed"),
|
|
3037
|
+
message: Schema.String
|
|
3038
|
+
})
|
|
3039
|
+
});
|
|
3040
|
+
var ReportsDeliveryFailedErrorSchema = ReportsDeliveryFailedErrorWireSchema.pipe(
|
|
3041
|
+
Schema.decodeTo(ReportsDeliveryFailedError, {
|
|
3042
|
+
decode: SchemaGetter.transform((wire) => ({ _tag: "ReportsDeliveryFailedError", ...wire })),
|
|
3043
|
+
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
3044
|
+
})
|
|
3045
|
+
);
|
|
3046
|
+
var ReportsUnavailableError = class extends Schema.TaggedErrorClass()("ReportsUnavailableError", {
|
|
3047
|
+
error: Schema.Struct({
|
|
3048
|
+
code: Schema.Literal("reports.unavailable"),
|
|
3049
|
+
message: Schema.String
|
|
3050
|
+
})
|
|
3051
|
+
}) {
|
|
3052
|
+
};
|
|
3053
|
+
var ReportsUnavailableErrorWireSchema = Schema.Struct({
|
|
3054
|
+
error: Schema.Struct({
|
|
3055
|
+
code: Schema.Literal("reports.unavailable"),
|
|
3056
|
+
message: Schema.String
|
|
3057
|
+
})
|
|
3058
|
+
});
|
|
3059
|
+
var ReportsUnavailableErrorSchema = ReportsUnavailableErrorWireSchema.pipe(
|
|
3060
|
+
Schema.decodeTo(ReportsUnavailableError, {
|
|
3061
|
+
decode: SchemaGetter.transform((wire) => ({ _tag: "ReportsUnavailableError", ...wire })),
|
|
3062
|
+
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
3063
|
+
})
|
|
3064
|
+
);
|
|
2928
3065
|
var RequestIdempotencyConflictError = class extends Schema.TaggedErrorClass()("RequestIdempotencyConflictError", {
|
|
2929
3066
|
error: Schema.Struct({
|
|
2930
3067
|
code: Schema.Literal("request.idempotency_conflict"),
|
|
@@ -3979,6 +4116,17 @@ var ArriveBySpacePublicInviteErrorSchema = Schema.Union([
|
|
|
3979
4116
|
SpacePublicInviteUnavailableErrorSchema,
|
|
3980
4117
|
TenantLiveEpisodeLimitReachedErrorSchema
|
|
3981
4118
|
]);
|
|
4119
|
+
var CancelEpisodeParticipantJoinErrorSchema = Schema.Union([
|
|
4120
|
+
AccessForbiddenErrorSchema,
|
|
4121
|
+
AccessUnauthenticatedErrorSchema,
|
|
4122
|
+
EpisodeInvalidIdErrorSchema,
|
|
4123
|
+
ParticipantInvalidIdErrorSchema,
|
|
4124
|
+
RequestInvalidErrorSchema,
|
|
4125
|
+
RequestRateLimitedErrorSchema,
|
|
4126
|
+
ServiceInternalErrorSchema,
|
|
4127
|
+
ServiceUnavailableErrorSchema,
|
|
4128
|
+
SpaceInvalidIdErrorSchema
|
|
4129
|
+
]);
|
|
3982
4130
|
var CancelSpaceRecordingPreparationErrorSchema = Schema.Union([
|
|
3983
4131
|
AccessForbiddenErrorSchema,
|
|
3984
4132
|
AccessUnauthenticatedErrorSchema,
|
|
@@ -4268,6 +4416,7 @@ var GetEpisodeErrorSchema = Schema.Union([
|
|
|
4268
4416
|
SpaceNotFoundErrorSchema,
|
|
4269
4417
|
TenantInvalidIdErrorSchema
|
|
4270
4418
|
]);
|
|
4419
|
+
var GetProblemReportAvailabilityErrorSchema = TenantInvalidIdErrorSchema;
|
|
4271
4420
|
var GetRecordingErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, RecordingInvalidIdErrorSchema, RecordingNotFoundErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4272
4421
|
var GetSpaceErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, SpaceInvalidIdErrorSchema, SpaceNotFoundErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4273
4422
|
var GetSpacePublicInviteArrivalErrorSchema = Schema.Union([
|
|
@@ -4472,6 +4621,7 @@ var ListRecordingsErrorSchema = Schema.Union([
|
|
|
4472
4621
|
SpaceInvalidIdErrorSchema,
|
|
4473
4622
|
TenantInvalidIdErrorSchema
|
|
4474
4623
|
]);
|
|
4624
|
+
var ListSpaceActivityErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, EpisodeInvalidSpaceIdsErrorSchema, RequestRateLimitedErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, SpaceNotFoundErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4475
4625
|
var ListSpaceLiveEpisodesErrorSchema = Schema.Union([
|
|
4476
4626
|
AccessForbiddenErrorSchema,
|
|
4477
4627
|
AccessUnauthenticatedErrorSchema,
|
|
@@ -4744,6 +4894,18 @@ var RotateWebhookEndpointSecretErrorSchema = Schema.Union([
|
|
|
4744
4894
|
WebhookInvalidUrlErrorSchema,
|
|
4745
4895
|
WebhookUnsafeUrlErrorSchema
|
|
4746
4896
|
]);
|
|
4897
|
+
var SendProblemReportErrorSchema = Schema.Union([
|
|
4898
|
+
AccessForbiddenErrorSchema,
|
|
4899
|
+
AccessUnauthenticatedErrorSchema,
|
|
4900
|
+
ReportsDeliveryFailedErrorSchema,
|
|
4901
|
+
ReportsUnavailableErrorSchema,
|
|
4902
|
+
RequestInvalidErrorSchema,
|
|
4903
|
+
RequestPayloadTooLargeErrorSchema,
|
|
4904
|
+
RequestRateLimitedErrorSchema,
|
|
4905
|
+
ServiceInternalErrorSchema,
|
|
4906
|
+
ServiceUnavailableErrorSchema,
|
|
4907
|
+
TenantInvalidIdErrorSchema
|
|
4908
|
+
]);
|
|
4747
4909
|
var SetEpisodeDeadlineErrorSchema = Schema.Union([
|
|
4748
4910
|
AccessForbiddenErrorSchema,
|
|
4749
4911
|
AccessUnauthenticatedErrorSchema,
|
|
@@ -4882,6 +5044,7 @@ var ChalkOperationPolicies = {
|
|
|
4882
5044
|
approveSpacePublicAdmissionRequest: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4883
5045
|
archiveSpace: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4884
5046
|
arriveBySpacePublicInvite: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5047
|
+
cancelEpisodeParticipantJoin: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4885
5048
|
cancelSpaceRecordingPreparation: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4886
5049
|
closeCloudflareSFUTracks: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4887
5050
|
createAPIKey: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
@@ -4911,6 +5074,7 @@ var ChalkOperationPolicies = {
|
|
|
4911
5074
|
issueEpisodeParticipantSyncToken: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4912
5075
|
leaveSpacePublicInviteArrival: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4913
5076
|
listEpisodes: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
5077
|
+
listSpaceActivity: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4914
5078
|
listSpaceLiveEpisodes: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4915
5079
|
listSpacePublicAdmissionRequests: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
4916
5080
|
listTenants: { rateLimit: { limit: 300, policy: "v1.authenticated.read", windowSeconds: 60 } },
|
|
@@ -4930,6 +5094,7 @@ var ChalkOperationPolicies = {
|
|
|
4930
5094
|
rotateAPIKey: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4931
5095
|
rotateSpacePublicInvite: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4932
5096
|
rotateWebhookEndpointSecret: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5097
|
+
sendProblemReport: { maxBodyBytes: 37024, rateLimit: { limit: 3, policy: "problem_reports.participant", windowSeconds: 3600 } },
|
|
4933
5098
|
setEpisodeDeadline: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4934
5099
|
testWebhookEndpoint: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
4935
5100
|
updateMembership: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
@@ -5114,6 +5279,12 @@ var defaultGroup = HttpApiGroup.make("default").add(
|
|
|
5114
5279
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5115
5280
|
]
|
|
5116
5281
|
})
|
|
5282
|
+
).add(
|
|
5283
|
+
HttpApiEndpoint.get("getProblemReportAvailability", "/v1/tenants/:tenant_id/problem-reports/availability", {
|
|
5284
|
+
params: GetProblemReportAvailabilityPathParamsSchema,
|
|
5285
|
+
success: GetProblemReportAvailabilityResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
5286
|
+
error: [TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400))]
|
|
5287
|
+
})
|
|
5117
5288
|
).add(
|
|
5118
5289
|
HttpApiEndpoint.get("getWebhookDelivery", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/deliveries/:delivery_id", {
|
|
5119
5290
|
params: GetWebhookDeliveryPathParamsSchema,
|
|
@@ -5431,6 +5602,24 @@ var defaultGroup = HttpApiGroup.make("default").add(
|
|
|
5431
5602
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5432
5603
|
]
|
|
5433
5604
|
})
|
|
5605
|
+
).add(
|
|
5606
|
+
HttpApiEndpoint.post("sendProblemReport", "/v1/tenants/:tenant_id/problem-reports", {
|
|
5607
|
+
params: SendProblemReportPathParamsSchema,
|
|
5608
|
+
payload: SendProblemReportRequestBodySchema,
|
|
5609
|
+
success: SendProblemReportResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
5610
|
+
error: [
|
|
5611
|
+
RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5612
|
+
TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5613
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
5614
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
5615
|
+
RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
|
|
5616
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
5617
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
5618
|
+
ReportsDeliveryFailedErrorSchema.pipe(HttpApiSchema.status(502)),
|
|
5619
|
+
ReportsUnavailableErrorSchema.pipe(HttpApiSchema.status(503)),
|
|
5620
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5621
|
+
]
|
|
5622
|
+
})
|
|
5434
5623
|
).add(
|
|
5435
5624
|
HttpApiEndpoint.post("testWebhookEndpoint", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/test", {
|
|
5436
5625
|
params: TestWebhookEndpointPathParamsSchema,
|
|
@@ -5527,6 +5716,22 @@ var episodesGroup = HttpApiGroup.make("episodes").add(
|
|
|
5527
5716
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5528
5717
|
]
|
|
5529
5718
|
})
|
|
5719
|
+
).add(
|
|
5720
|
+
HttpApiEndpoint.post("cancelEpisodeParticipantJoin", "/v1/tenants/:tenant_id/spaces/:space_id/episodes/:episode_id/participants/:participant_id/cancel-join", {
|
|
5721
|
+
params: CancelEpisodeParticipantJoinPathParamsSchema,
|
|
5722
|
+
success: CancelEpisodeParticipantJoinResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
5723
|
+
error: [
|
|
5724
|
+
EpisodeInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5725
|
+
ParticipantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5726
|
+
RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5727
|
+
SpaceInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
5728
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
5729
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
5730
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
5731
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
5732
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
5733
|
+
]
|
|
5734
|
+
})
|
|
5530
5735
|
).add(
|
|
5531
5736
|
HttpApiEndpoint.post("createEpisode", "/v1/tenants/:tenant_id/spaces/:space_id/episodes", {
|
|
5532
5737
|
params: CreateEpisodePathParamsSchema,
|
|
@@ -6061,6 +6266,22 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
|
|
|
6061
6266
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6062
6267
|
]
|
|
6063
6268
|
})
|
|
6269
|
+
).add(
|
|
6270
|
+
HttpApiEndpoint.get("listSpaceActivity", "/v1/tenants/:tenant_id/space-activity", {
|
|
6271
|
+
params: ListSpaceActivityPathParamsSchema,
|
|
6272
|
+
query: ListSpaceActivityQueryParamsSchema,
|
|
6273
|
+
success: ListSpaceActivityResponseSchema.pipe(HttpApiSchema.status(200)),
|
|
6274
|
+
error: [
|
|
6275
|
+
EpisodeInvalidSpaceIdsErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6276
|
+
TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6277
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
6278
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
6279
|
+
SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6280
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
6281
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
6282
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6283
|
+
]
|
|
6284
|
+
})
|
|
6064
6285
|
).add(
|
|
6065
6286
|
HttpApiEndpoint.get("listSpacePublicAdmissionRequests", "/v1/tenants/:tenant_id/spaces/:space_id/public-admission-requests", {
|
|
6066
6287
|
params: ListSpacePublicAdmissionRequestsPathParamsSchema,
|
|
@@ -6631,6 +6852,7 @@ function isRecord(value) {
|
|
|
6631
6852
|
}
|
|
6632
6853
|
|
|
6633
6854
|
export {
|
|
6855
|
+
ChalkCodePointLimits,
|
|
6634
6856
|
DateTimeStringSchema,
|
|
6635
6857
|
UserIdSchema,
|
|
6636
6858
|
UUIDSchema,
|
|
@@ -6683,9 +6905,13 @@ export {
|
|
|
6683
6905
|
MembershipIdSchema,
|
|
6684
6906
|
MembershipSchema,
|
|
6685
6907
|
MembershipListSchema,
|
|
6908
|
+
ParticipantJoinCancellationSchema,
|
|
6686
6909
|
ParticipantLifecycleSchema,
|
|
6687
6910
|
ParticipantRemovalSchema,
|
|
6688
6911
|
PrepareRecordingRequestSchema,
|
|
6912
|
+
ProblemReportAvailabilitySchema,
|
|
6913
|
+
ProblemReportRequestSchema,
|
|
6914
|
+
ProblemReportSentSchema,
|
|
6689
6915
|
PublicAdmissionRequestSchema,
|
|
6690
6916
|
PublicAdmissionRequestPageSchema,
|
|
6691
6917
|
PublicSpaceArrivalSchema,
|
|
@@ -6708,6 +6934,7 @@ export {
|
|
|
6708
6934
|
RotateWebhookSecretResponseSchema,
|
|
6709
6935
|
SetEpisodeDeadlineRequestSchema,
|
|
6710
6936
|
SpaceSchema,
|
|
6937
|
+
SpaceActivityListSchema,
|
|
6711
6938
|
SpaceListSchema,
|
|
6712
6939
|
SpaceLiveEpisodeListSchema,
|
|
6713
6940
|
SpacePublicInviteSchema,
|
|
@@ -6758,6 +6985,9 @@ export {
|
|
|
6758
6985
|
ArriveBySpacePublicInviteRequestBodySchema,
|
|
6759
6986
|
ArriveBySpacePublicInviteResponseSchema,
|
|
6760
6987
|
ArriveBySpacePublicInvite429ResponseHeadersSchema,
|
|
6988
|
+
CancelEpisodeParticipantJoinPathParamsSchema,
|
|
6989
|
+
CancelEpisodeParticipantJoinResponseSchema,
|
|
6990
|
+
CancelEpisodeParticipantJoin429ResponseHeadersSchema,
|
|
6761
6991
|
CancelSpaceRecordingPreparationPathParamsSchema,
|
|
6762
6992
|
CancelSpaceRecordingPreparationRequestBodySchema,
|
|
6763
6993
|
CancelSpaceRecordingPreparationResponseSchema,
|
|
@@ -6831,6 +7061,8 @@ export {
|
|
|
6831
7061
|
GetEpisodeAttendancePathParamsSchema,
|
|
6832
7062
|
GetEpisodeAttendanceResponseSchema,
|
|
6833
7063
|
GetEpisodeAttendance429ResponseHeadersSchema,
|
|
7064
|
+
GetProblemReportAvailabilityPathParamsSchema,
|
|
7065
|
+
GetProblemReportAvailabilityResponseSchema,
|
|
6834
7066
|
GetRecordingPathParamsSchema,
|
|
6835
7067
|
GetRecordingResponseSchema,
|
|
6836
7068
|
GetSpacePathParamsSchema,
|
|
@@ -6886,6 +7118,10 @@ export {
|
|
|
6886
7118
|
ListRecordingsPathParamsSchema,
|
|
6887
7119
|
ListRecordingsQueryParamsSchema,
|
|
6888
7120
|
ListRecordingsResponseSchema,
|
|
7121
|
+
ListSpaceActivityPathParamsSchema,
|
|
7122
|
+
ListSpaceActivityQueryParamsSchema,
|
|
7123
|
+
ListSpaceActivityResponseSchema,
|
|
7124
|
+
ListSpaceActivity429ResponseHeadersSchema,
|
|
6889
7125
|
ListSpaceLiveEpisodesPathParamsSchema,
|
|
6890
7126
|
ListSpaceLiveEpisodesQueryParamsSchema,
|
|
6891
7127
|
ListSpaceLiveEpisodesResponseSchema,
|
|
@@ -6965,6 +7201,10 @@ export {
|
|
|
6965
7201
|
RotateWebhookEndpointSecretRequestBodySchema,
|
|
6966
7202
|
RotateWebhookEndpointSecretResponseSchema,
|
|
6967
7203
|
RotateWebhookEndpointSecret429ResponseHeadersSchema,
|
|
7204
|
+
SendProblemReportPathParamsSchema,
|
|
7205
|
+
SendProblemReportRequestBodySchema,
|
|
7206
|
+
SendProblemReportResponseSchema,
|
|
7207
|
+
SendProblemReport429ResponseHeadersSchema,
|
|
6968
7208
|
SetEpisodeDeadlinePathParamsSchema,
|
|
6969
7209
|
SetEpisodeDeadlineRequestHeadersSchema,
|
|
6970
7210
|
SetEpisodeDeadlineRequestBodySchema,
|
|
@@ -7178,6 +7418,12 @@ export {
|
|
|
7178
7418
|
RecordingPreparationPolicyDeniedError,
|
|
7179
7419
|
RecordingPreparationPolicyDeniedErrorWireSchema,
|
|
7180
7420
|
RecordingPreparationPolicyDeniedErrorSchema,
|
|
7421
|
+
ReportsDeliveryFailedError,
|
|
7422
|
+
ReportsDeliveryFailedErrorWireSchema,
|
|
7423
|
+
ReportsDeliveryFailedErrorSchema,
|
|
7424
|
+
ReportsUnavailableError,
|
|
7425
|
+
ReportsUnavailableErrorWireSchema,
|
|
7426
|
+
ReportsUnavailableErrorSchema,
|
|
7181
7427
|
RequestIdempotencyConflictError,
|
|
7182
7428
|
RequestIdempotencyConflictErrorWireSchema,
|
|
7183
7429
|
RequestIdempotencyConflictErrorSchema,
|
|
@@ -7339,6 +7585,7 @@ export {
|
|
|
7339
7585
|
ApproveSpacePublicAdmissionRequestErrorSchema,
|
|
7340
7586
|
ArchiveSpaceErrorSchema,
|
|
7341
7587
|
ArriveBySpacePublicInviteErrorSchema,
|
|
7588
|
+
CancelEpisodeParticipantJoinErrorSchema,
|
|
7342
7589
|
CancelSpaceRecordingPreparationErrorSchema,
|
|
7343
7590
|
CloseCloudflareSFUTracksErrorSchema,
|
|
7344
7591
|
CreateAPIKeyErrorSchema,
|
|
@@ -7359,6 +7606,7 @@ export {
|
|
|
7359
7606
|
GetChatAttachmentDownloadErrorSchema,
|
|
7360
7607
|
GetEpisodeAttendanceErrorSchema,
|
|
7361
7608
|
GetEpisodeErrorSchema,
|
|
7609
|
+
GetProblemReportAvailabilityErrorSchema,
|
|
7362
7610
|
GetRecordingErrorSchema,
|
|
7363
7611
|
GetSpaceErrorSchema,
|
|
7364
7612
|
GetSpacePublicInviteArrivalErrorSchema,
|
|
@@ -7379,6 +7627,7 @@ export {
|
|
|
7379
7627
|
ListEpisodesErrorSchema,
|
|
7380
7628
|
ListMembershipsErrorSchema,
|
|
7381
7629
|
ListRecordingsErrorSchema,
|
|
7630
|
+
ListSpaceActivityErrorSchema,
|
|
7382
7631
|
ListSpaceLiveEpisodesErrorSchema,
|
|
7383
7632
|
ListSpacePublicAdmissionRequestsErrorSchema,
|
|
7384
7633
|
ListSpacesErrorSchema,
|
|
@@ -7400,6 +7649,7 @@ export {
|
|
|
7400
7649
|
RotateAPIKeyErrorSchema,
|
|
7401
7650
|
RotateSpacePublicInviteErrorSchema,
|
|
7402
7651
|
RotateWebhookEndpointSecretErrorSchema,
|
|
7652
|
+
SendProblemReportErrorSchema,
|
|
7403
7653
|
SetEpisodeDeadlineErrorSchema,
|
|
7404
7654
|
TestWebhookEndpointErrorSchema,
|
|
7405
7655
|
UpdateMembershipErrorSchema,
|