@q9labsai/chalk-client 4.0.1 → 4.1.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/dist/effect.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  makeSpaceClientCoreLayer,
18
18
  makeSpaceClientCoreLayerFromServices,
19
19
  makeSpaceStoreLayer
20
- } from "./chunk-DOUU3EKN.js";
20
+ } from "./chunk-5R3VVGSW.js";
21
21
  import "./chunk-PBCGWE2V.js";
22
22
  import "./chunk-5VXGLI3T.js";
23
23
  import {
@@ -62,9 +62,9 @@ var AIProviderConfigSchema = Schema.StructWithRest(
62
62
  [Schema.Record(Schema.String, Schema.Unknown)]
63
63
  );
64
64
  var DateTimeStringSchema = Schema.String.check(Schema.isPattern(/^\d{4}-\d{2}-\d{2}T/)).pipe(Schema.brand("DateTimeString"));
65
- var UserIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("UserId"));
66
- var UUIDSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("UUID"));
67
- var TenantIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("TenantId"));
65
+ var UserIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("UserId"));
66
+ var UUIDSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("UUID"));
67
+ var TenantIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("TenantId"));
68
68
  var PaginationSchema = Schema.Struct({
69
69
  has_more: Schema.Boolean,
70
70
  next_cursor: Schema.NullOr(Schema.String),
@@ -105,9 +105,9 @@ var APIKeyWithSecretSchema = Schema.Struct({
105
105
  replayed: Schema.Boolean,
106
106
  secret: Schema.String
107
107
  });
108
- var EpisodeIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("EpisodeId"));
109
- var ParticipantIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("ParticipantId"));
110
- var SpaceIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("SpaceId"));
108
+ var EpisodeIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("EpisodeId"));
109
+ var ParticipantIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("ParticipantId"));
110
+ var SpaceIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("SpaceId"));
111
111
  var AccessGrantSchema = Schema.Struct({
112
112
  diagnostics: Schema.optional(
113
113
  Schema.NullOr(
@@ -205,7 +205,7 @@ var AdmitEpisodeParticipantRequestSchema = Schema.Struct({
205
205
  participant_id: Schema.optional(ParticipantIdSchema),
206
206
  role: Schema.String.check(Schema.isMinLength(1))
207
207
  });
208
- var AuditLogIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("AuditLogId"));
208
+ var AuditLogIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("AuditLogId"));
209
209
  var AuditLogSchema = Schema.Struct({
210
210
  action: Schema.String,
211
211
  actor_type: Schema.String,
@@ -395,7 +395,7 @@ var CreateSpaceRequestSchema = Schema.Struct({
395
395
  default_episode_duration_seconds: Schema.Number,
396
396
  linger_window_seconds: Schema.Number,
397
397
  maximum_episode_duration_seconds: Schema.Number,
398
- media_plane: Schema.String.check(Schema.isMinLength(1)),
398
+ media_plane: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
399
399
  metadata: Schema.optional(Schema.Unknown),
400
400
  name: Schema.String.check(Schema.isMinLength(1)),
401
401
  recurring_policy: Schema.optional(Schema.Unknown),
@@ -425,6 +425,9 @@ var CreateWebhookEndpointRequestSchema = Schema.Struct({
425
425
  name: Schema.String.check(Schema.isMinLength(1)),
426
426
  url: Schema.String.check(Schema.isMinLength(1))
427
427
  });
428
+ var DashboardSpaceSelfJoinRequestSchema = Schema.Struct({
429
+ display_name: Schema.String.check(Schema.isMinLength(1))
430
+ });
428
431
  var EpisodeSchema = Schema.Struct({
429
432
  config_snapshot: Schema.Unknown,
430
433
  created_at: DateTimeStringSchema,
@@ -585,11 +588,14 @@ var JourneyEventIntakeSchema = Schema.Struct({
585
588
  duplicate_count: Schema.Number,
586
589
  journey_ids: Schema.Array(Schema.String)
587
590
  });
591
+ var LeaveDashboardSpaceSelfRequestSchema = Schema.Struct({
592
+ participant_generation: Schema.Number
593
+ });
588
594
  var LoginRequestSchema = Schema.Struct({
589
595
  email: EmailSchema,
590
596
  password: Schema.String.check(Schema.isMinLength(1))
591
597
  });
592
- var MembershipIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("MembershipId"));
598
+ var MembershipIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("MembershipId"));
593
599
  var MembershipSchema = Schema.Struct({
594
600
  created_at: DateTimeStringSchema,
595
601
  id: MembershipIdSchema,
@@ -703,7 +709,7 @@ var RecentAuthRequestSchema = Schema.Struct({
703
709
  provider_state: Schema.String.check(Schema.isMinLength(1)),
704
710
  resource_id: Schema.optional(Schema.NullOr(UUIDSchema))
705
711
  });
706
- var RecordingIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("RecordingId"));
712
+ var RecordingIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("RecordingId"));
707
713
  var RecordingSchema = Schema.Struct({
708
714
  created_at: DateTimeStringSchema,
709
715
  episode_id: EpisodeIdSchema,
@@ -765,9 +771,7 @@ var RegisterRequestSchema = Schema.Struct({
765
771
  name: Schema.String.check(Schema.isMinLength(1)),
766
772
  password: Schema.String.check(Schema.isMinLength(1))
767
773
  });
768
- var RemoveEpisodeParticipantRequestSchema = Schema.Struct({
769
- participant_generation: Schema.Number
770
- });
774
+ var RemoveEpisodeParticipantRequestSchema = LeaveDashboardSpaceSelfRequestSchema;
771
775
  var RequestTranscriptRequestSchema = Schema.Struct({
772
776
  idempotency_key: Schema.String.check(Schema.isMinLength(1)),
773
777
  language: Schema.String.check(Schema.isMinLength(1)),
@@ -856,7 +860,7 @@ var TenantListSchema = Schema.Struct({
856
860
  pagination: PaginationSchema,
857
861
  tenants: Schema.Array(TenantSchema)
858
862
  });
859
- var TranscriptIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)).pipe(Schema.brand("TranscriptId"));
863
+ var TranscriptIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)).pipe(Schema.brand("TranscriptId"));
860
864
  var TranscriptSchema = Schema.Struct({
861
865
  artifact_content_type: Schema.optional(Schema.NullOr(Schema.String)),
862
866
  artifact_size: Schema.optional(Schema.NullOr(Schema.Number)),
@@ -1489,6 +1493,33 @@ var IssueRecentAuthProof429ResponseHeadersSchema = Schema.Struct({
1489
1493
  "X-RateLimit-Limit": RateLimitLimitHeaderSchema,
1490
1494
  "X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
1491
1495
  });
1496
+ var JoinDashboardSpaceSelfPathParamsSchema = Schema.Struct({
1497
+ space_slug: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(128), Schema.isPattern(new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"))),
1498
+ tenant_id: TenantIdSchema
1499
+ });
1500
+ var JoinDashboardSpaceSelfRequestHeadersSchema = Schema.Struct({
1501
+ "Idempotency-Key": Schema.String.check(Schema.isMinLength(16), Schema.isMaxLength(128), Schema.isPattern(new RegExp("^[A-Za-z0-9_-]+$")))
1502
+ });
1503
+ var JoinDashboardSpaceSelfRequestBodySchema = DashboardSpaceSelfJoinRequestSchema;
1504
+ var JoinDashboardSpaceSelfResponseSchema = AccessGrantSchema;
1505
+ var JoinDashboardSpaceSelf429ResponseHeadersSchema = Schema.Struct({
1506
+ "Retry-After": RetryAfterHeaderSchema,
1507
+ "X-RateLimit-Limit": RateLimitLimitHeaderSchema,
1508
+ "X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
1509
+ });
1510
+ var LeaveDashboardSpaceSelfPathParamsSchema = Schema.Struct({
1511
+ space_slug: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(128), Schema.isPattern(new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"))),
1512
+ tenant_id: TenantIdSchema
1513
+ });
1514
+ var LeaveDashboardSpaceSelfRequestHeadersSchema = Schema.Struct({
1515
+ "Idempotency-Key": Schema.String.check(Schema.isMinLength(16), Schema.isMaxLength(128), Schema.isPattern(new RegExp("^[A-Za-z0-9_-]+$")))
1516
+ });
1517
+ var LeaveDashboardSpaceSelfRequestBodySchema = LeaveDashboardSpaceSelfRequestSchema;
1518
+ var LeaveDashboardSpaceSelf429ResponseHeadersSchema = Schema.Struct({
1519
+ "Retry-After": RetryAfterHeaderSchema,
1520
+ "X-RateLimit-Limit": RateLimitLimitHeaderSchema,
1521
+ "X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
1522
+ });
1492
1523
  var ListAPIKeysPathParamsSchema = Schema.Struct({
1493
1524
  tenant_id: TenantIdSchema
1494
1525
  });
@@ -1673,6 +1704,17 @@ var RedeliverWebhookDelivery429ResponseHeadersSchema = Schema.Struct({
1673
1704
  "X-RateLimit-Limit": RateLimitLimitHeaderSchema,
1674
1705
  "X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
1675
1706
  });
1707
+ var RefreshDashboardSpaceSelfAccessPathParamsSchema = Schema.Struct({
1708
+ space_slug: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(128), Schema.isPattern(new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"))),
1709
+ tenant_id: TenantIdSchema
1710
+ });
1711
+ var RefreshDashboardSpaceSelfAccessRequestBodySchema = IssueAccessGrantRequestSchema;
1712
+ var RefreshDashboardSpaceSelfAccessResponseSchema = AccessGrantSchema;
1713
+ var RefreshDashboardSpaceSelfAccess429ResponseHeadersSchema = Schema.Struct({
1714
+ "Retry-After": RetryAfterHeaderSchema,
1715
+ "X-RateLimit-Limit": RateLimitLimitHeaderSchema,
1716
+ "X-RateLimit-Remaining": RateLimitRemainingHeaderSchema
1717
+ });
1676
1718
  var RefreshIntegrationConnectionPathParamsSchema = Schema.Struct({
1677
1719
  connection_id: UUIDSchema,
1678
1720
  tenant_id: TenantIdSchema
@@ -3406,6 +3448,44 @@ var SpaceInvalidIdErrorSchema = SpaceInvalidIdErrorWireSchema.pipe(
3406
3448
  encode: SchemaGetter.transform((error) => ({ error: error.error }))
3407
3449
  })
3408
3450
  );
3451
+ var SpaceInvalidMediaPlaneError = class extends Schema.TaggedErrorClass()("SpaceInvalidMediaPlaneError", {
3452
+ error: Schema.Struct({
3453
+ code: Schema.Literal("space.invalid_media_plane"),
3454
+ message: Schema.String
3455
+ })
3456
+ }) {
3457
+ };
3458
+ var SpaceInvalidMediaPlaneErrorWireSchema = Schema.Struct({
3459
+ error: Schema.Struct({
3460
+ code: Schema.Literal("space.invalid_media_plane"),
3461
+ message: Schema.String
3462
+ })
3463
+ });
3464
+ var SpaceInvalidMediaPlaneErrorSchema = SpaceInvalidMediaPlaneErrorWireSchema.pipe(
3465
+ Schema.decodeTo(SpaceInvalidMediaPlaneError, {
3466
+ decode: SchemaGetter.transform((wire) => ({ _tag: "SpaceInvalidMediaPlaneError", ...wire })),
3467
+ encode: SchemaGetter.transform((error) => ({ error: error.error }))
3468
+ })
3469
+ );
3470
+ var SpaceInvalidSlugError = class extends Schema.TaggedErrorClass()("SpaceInvalidSlugError", {
3471
+ error: Schema.Struct({
3472
+ code: Schema.Literal("space.invalid_slug"),
3473
+ message: Schema.String
3474
+ })
3475
+ }) {
3476
+ };
3477
+ var SpaceInvalidSlugErrorWireSchema = Schema.Struct({
3478
+ error: Schema.Struct({
3479
+ code: Schema.Literal("space.invalid_slug"),
3480
+ message: Schema.String
3481
+ })
3482
+ });
3483
+ var SpaceInvalidSlugErrorSchema = SpaceInvalidSlugErrorWireSchema.pipe(
3484
+ Schema.decodeTo(SpaceInvalidSlugError, {
3485
+ decode: SchemaGetter.transform((wire) => ({ _tag: "SpaceInvalidSlugError", ...wire })),
3486
+ encode: SchemaGetter.transform((error) => ({ error: error.error }))
3487
+ })
3488
+ );
3409
3489
  var SpaceNotFoundError = class extends Schema.TaggedErrorClass()("SpaceNotFoundError", {
3410
3490
  error: Schema.Struct({
3411
3491
  code: Schema.Literal("space.not_found"),
@@ -4313,6 +4393,7 @@ var CreateAPIKeyErrorSchema = Schema.Union([
4313
4393
  var CreateEpisodeErrorSchema = Schema.Union([
4314
4394
  AccessForbiddenErrorSchema,
4315
4395
  AccessUnauthenticatedErrorSchema,
4396
+ EpisodeCapacityExceededErrorSchema,
4316
4397
  EpisodeNotFoundErrorSchema,
4317
4398
  RequestIdempotencyConflictErrorSchema,
4318
4399
  RequestInvalidErrorSchema,
@@ -4400,6 +4481,7 @@ var CreateSpaceErrorSchema = Schema.Union([
4400
4481
  RequestRateLimitedErrorSchema,
4401
4482
  ServiceInternalErrorSchema,
4402
4483
  ServiceUnavailableErrorSchema,
4484
+ SpaceInvalidMediaPlaneErrorSchema,
4403
4485
  SpaceSlugConflictErrorSchema,
4404
4486
  TenantInvalidIdErrorSchema
4405
4487
  ]);
@@ -4738,6 +4820,41 @@ var IssueEpisodeParticipantSyncTokenErrorSchema = Schema.Union([
4738
4820
  TenantInvalidIdErrorSchema
4739
4821
  ]);
4740
4822
  var IssueRecentAuthProofErrorSchema = Schema.Union([AccessUnauthenticatedErrorSchema, AuthInvalidRecentAuthErrorSchema, RequestInvalidErrorSchema, RequestPayloadTooLargeErrorSchema, RequestRateLimitedErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema]);
4823
+ var JoinDashboardSpaceSelfErrorSchema = Schema.Union([
4824
+ AccessForbiddenErrorSchema,
4825
+ AccessUnauthenticatedErrorSchema,
4826
+ EpisodeCapacityExceededErrorSchema,
4827
+ EpisodeNotActiveErrorSchema,
4828
+ MediaUnavailableErrorSchema,
4829
+ ParticipantNotActiveErrorSchema,
4830
+ RequestIdempotencyConflictErrorSchema,
4831
+ RequestInvalidErrorSchema,
4832
+ RequestInvalidIdempotencyKeyErrorSchema,
4833
+ RequestPayloadTooLargeErrorSchema,
4834
+ RequestRateLimitedErrorSchema,
4835
+ ServiceInternalErrorSchema,
4836
+ ServiceUnavailableErrorSchema,
4837
+ SpaceInvalidSlugErrorSchema,
4838
+ SpaceNotFoundErrorSchema,
4839
+ TenantInvalidIdErrorSchema
4840
+ ]);
4841
+ var LeaveDashboardSpaceSelfErrorSchema = Schema.Union([
4842
+ AccessForbiddenErrorSchema,
4843
+ AccessUnauthenticatedErrorSchema,
4844
+ EpisodeNotActiveErrorSchema,
4845
+ ParticipantGenerationMismatchErrorSchema,
4846
+ ParticipantNotActiveErrorSchema,
4847
+ RequestIdempotencyConflictErrorSchema,
4848
+ RequestInvalidErrorSchema,
4849
+ RequestInvalidIdempotencyKeyErrorSchema,
4850
+ RequestPayloadTooLargeErrorSchema,
4851
+ RequestRateLimitedErrorSchema,
4852
+ ServiceInternalErrorSchema,
4853
+ ServiceUnavailableErrorSchema,
4854
+ SpaceInvalidSlugErrorSchema,
4855
+ SpaceNotFoundErrorSchema,
4856
+ TenantInvalidIdErrorSchema
4857
+ ]);
4741
4858
  var ListAPIKeysErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, PaginationInvalidCursorErrorSchema, PaginationInvalidPageSizeErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, TenantInvalidIdErrorSchema]);
4742
4859
  var ListAuditLogsErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, PaginationInvalidCursorErrorSchema, PaginationInvalidPageSizeErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, TenantInvalidIdErrorSchema]);
4743
4860
  var ListCloudflareSFUPublicationsErrorSchema = Schema.Union([
@@ -4892,6 +5009,22 @@ var RedeliverWebhookDeliveryErrorSchema = Schema.Union([
4892
5009
  WebhookInvalidUrlErrorSchema,
4893
5010
  WebhookUnsafeUrlErrorSchema
4894
5011
  ]);
5012
+ var RefreshDashboardSpaceSelfAccessErrorSchema = Schema.Union([
5013
+ AccessForbiddenErrorSchema,
5014
+ AccessUnauthenticatedErrorSchema,
5015
+ EpisodeNotFoundErrorSchema,
5016
+ MediaUnavailableErrorSchema,
5017
+ ParticipantGenerationMismatchErrorSchema,
5018
+ ParticipantNotFoundErrorSchema,
5019
+ RequestInvalidErrorSchema,
5020
+ RequestPayloadTooLargeErrorSchema,
5021
+ RequestRateLimitedErrorSchema,
5022
+ ServiceInternalErrorSchema,
5023
+ ServiceUnavailableErrorSchema,
5024
+ SpaceInvalidSlugErrorSchema,
5025
+ SpaceNotFoundErrorSchema,
5026
+ TenantInvalidIdErrorSchema
5027
+ ]);
4895
5028
  var RefreshIntegrationConnectionErrorSchema = Schema.Union([
4896
5029
  AccessForbiddenErrorSchema,
4897
5030
  AccessUnauthenticatedErrorSchema,
@@ -5135,6 +5268,7 @@ var UpdateSpaceErrorSchema = Schema.Union([
5135
5268
  ServiceInternalErrorSchema,
5136
5269
  ServiceUnavailableErrorSchema,
5137
5270
  SpaceInvalidIdErrorSchema,
5271
+ SpaceInvalidMediaPlaneErrorSchema,
5138
5272
  SpaceNotFoundErrorSchema,
5139
5273
  SpaceSlugConflictErrorSchema,
5140
5274
  TenantInvalidIdErrorSchema
@@ -5218,12 +5352,15 @@ var ChalkOperationPolicies = {
5218
5352
  issueAccessGrant: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5219
5353
  issueEpisodeParticipantSyncToken: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5220
5354
  issueRecentAuthProof: { maxBodyBytes: 1048576, rateLimit: { limit: 10, policy: "auth.recent_auth", windowSeconds: 60 } },
5355
+ joinDashboardSpaceSelf: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5356
+ leaveDashboardSpaceSelf: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5221
5357
  listEpisodes: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5222
5358
  listWebhookDeliveries: { rateLimit: { limit: 300, policy: "v1.webhooks.read", windowSeconds: 60 } },
5223
5359
  listWebhookEndpoints: { rateLimit: { limit: 300, policy: "v1.webhooks.read", windowSeconds: 60 } },
5224
5360
  login: { maxBodyBytes: 1048576, rateLimit: { limit: 10, policy: "auth.login", windowSeconds: 60 } },
5225
5361
  onboardTenant: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5226
5362
  redeliverWebhookDelivery: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5363
+ refreshDashboardSpaceSelfAccess: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5227
5364
  refreshIntegrationConnection: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
5228
5365
  register: { maxBodyBytes: 1048576, rateLimit: { limit: 5, policy: "auth.register", windowSeconds: 60 } },
5229
5366
  releaseRecordingReservation: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
@@ -6041,6 +6178,7 @@ var episodesGroup = HttpApiGroup.make("episodes").add(
6041
6178
  AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
6042
6179
  EpisodeNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
6043
6180
  SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
6181
+ EpisodeCapacityExceededErrorSchema.pipe(HttpApiSchema.status(409)),
6044
6182
  RequestIdempotencyConflictErrorSchema.pipe(HttpApiSchema.status(409)),
6045
6183
  RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
6046
6184
  RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
@@ -6582,6 +6720,7 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
6582
6720
  error: [
6583
6721
  RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
6584
6722
  RequestInvalidIdempotencyKeyErrorSchema.pipe(HttpApiSchema.status(400)),
6723
+ SpaceInvalidMediaPlaneErrorSchema.pipe(HttpApiSchema.status(400)),
6585
6724
  TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
6586
6725
  AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
6587
6726
  AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
@@ -6607,6 +6746,55 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
6607
6746
  ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
6608
6747
  ]
6609
6748
  })
6749
+ ).add(
6750
+ HttpApiEndpoint.post("joinDashboardSpaceSelf", "/v1/tenants/:tenant_id/spaces/by-slug/:space_slug/participants/self", {
6751
+ params: JoinDashboardSpaceSelfPathParamsSchema,
6752
+ headers: JoinDashboardSpaceSelfRequestHeadersSchema,
6753
+ payload: JoinDashboardSpaceSelfRequestBodySchema,
6754
+ success: JoinDashboardSpaceSelfResponseSchema.pipe(HttpApiSchema.status(201)),
6755
+ error: [
6756
+ RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
6757
+ RequestInvalidIdempotencyKeyErrorSchema.pipe(HttpApiSchema.status(400)),
6758
+ SpaceInvalidSlugErrorSchema.pipe(HttpApiSchema.status(400)),
6759
+ TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
6760
+ AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
6761
+ AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
6762
+ SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
6763
+ EpisodeCapacityExceededErrorSchema.pipe(HttpApiSchema.status(409)),
6764
+ EpisodeNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
6765
+ ParticipantNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
6766
+ RequestIdempotencyConflictErrorSchema.pipe(HttpApiSchema.status(409)),
6767
+ RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
6768
+ RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
6769
+ ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
6770
+ MediaUnavailableErrorSchema.pipe(HttpApiSchema.status(503)),
6771
+ ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
6772
+ ]
6773
+ })
6774
+ ).add(
6775
+ HttpApiEndpoint.delete("leaveDashboardSpaceSelf", "/v1/tenants/:tenant_id/spaces/by-slug/:space_slug/participants/self", {
6776
+ params: LeaveDashboardSpaceSelfPathParamsSchema,
6777
+ headers: LeaveDashboardSpaceSelfRequestHeadersSchema,
6778
+ payload: LeaveDashboardSpaceSelfRequestBodySchema,
6779
+ success: HttpApiSchema.Empty(204).pipe(HttpApiSchema.status(204)),
6780
+ error: [
6781
+ RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
6782
+ RequestInvalidIdempotencyKeyErrorSchema.pipe(HttpApiSchema.status(400)),
6783
+ SpaceInvalidSlugErrorSchema.pipe(HttpApiSchema.status(400)),
6784
+ TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
6785
+ AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
6786
+ AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
6787
+ SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
6788
+ EpisodeNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
6789
+ ParticipantGenerationMismatchErrorSchema.pipe(HttpApiSchema.status(409)),
6790
+ ParticipantNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
6791
+ RequestIdempotencyConflictErrorSchema.pipe(HttpApiSchema.status(409)),
6792
+ RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
6793
+ RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
6794
+ ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
6795
+ ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
6796
+ ]
6797
+ })
6610
6798
  ).add(
6611
6799
  HttpApiEndpoint.get("listSpaces", "/v1/tenants/:tenant_id/spaces", {
6612
6800
  params: ListSpacesPathParamsSchema,
@@ -6623,6 +6811,28 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
6623
6811
  ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
6624
6812
  ]
6625
6813
  })
6814
+ ).add(
6815
+ HttpApiEndpoint.post("refreshDashboardSpaceSelfAccess", "/v1/tenants/:tenant_id/spaces/by-slug/:space_slug/participants/self/access-grants", {
6816
+ params: RefreshDashboardSpaceSelfAccessPathParamsSchema,
6817
+ payload: RefreshDashboardSpaceSelfAccessRequestBodySchema,
6818
+ success: RefreshDashboardSpaceSelfAccessResponseSchema.pipe(HttpApiSchema.status(201)),
6819
+ error: [
6820
+ RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
6821
+ SpaceInvalidSlugErrorSchema.pipe(HttpApiSchema.status(400)),
6822
+ TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
6823
+ AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
6824
+ AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
6825
+ EpisodeNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
6826
+ ParticipantNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
6827
+ SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
6828
+ ParticipantGenerationMismatchErrorSchema.pipe(HttpApiSchema.status(409)),
6829
+ RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
6830
+ RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
6831
+ ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
6832
+ MediaUnavailableErrorSchema.pipe(HttpApiSchema.status(503)),
6833
+ ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
6834
+ ]
6835
+ })
6626
6836
  ).add(
6627
6837
  HttpApiEndpoint.post("restoreSpace", "/v1/tenants/:tenant_id/spaces/:space_id/restore", {
6628
6838
  params: RestoreSpacePathParamsSchema,
@@ -6646,6 +6856,7 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
6646
6856
  error: [
6647
6857
  RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
6648
6858
  SpaceInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
6859
+ SpaceInvalidMediaPlaneErrorSchema.pipe(HttpApiSchema.status(400)),
6649
6860
  TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
6650
6861
  AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
6651
6862
  AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
@@ -7128,6 +7339,7 @@ export {
7128
7339
  CreateWebhookEndpointRequestHeadersSchema,
7129
7340
  CreateWebhookEndpointRequestSchema,
7130
7341
  CreateWebhookEndpointResponseSchema,
7342
+ DashboardSpaceSelfJoinRequestSchema,
7131
7343
  DateTimeStringSchema,
7132
7344
  DeleteTranscript429ResponseHeadersSchema,
7133
7345
  DeleteTranscriptErrorSchema,
@@ -7328,6 +7540,12 @@ export {
7328
7540
  IssueRecentAuthProofErrorSchema,
7329
7541
  IssueRecentAuthProofRequestBodySchema,
7330
7542
  IssueRecentAuthProofResponseSchema,
7543
+ JoinDashboardSpaceSelf429ResponseHeadersSchema,
7544
+ JoinDashboardSpaceSelfErrorSchema,
7545
+ JoinDashboardSpaceSelfPathParamsSchema,
7546
+ JoinDashboardSpaceSelfRequestBodySchema,
7547
+ JoinDashboardSpaceSelfRequestHeadersSchema,
7548
+ JoinDashboardSpaceSelfResponseSchema,
7331
7549
  JourneyEventBatchSchema,
7332
7550
  JourneyEventIntakeSchema,
7333
7551
  JourneyInvalidEventError,
@@ -7336,6 +7554,12 @@ export {
7336
7554
  JourneyLedgerUnavailableError,
7337
7555
  JourneyLedgerUnavailableErrorSchema,
7338
7556
  JourneyLedgerUnavailableErrorWireSchema,
7557
+ LeaveDashboardSpaceSelf429ResponseHeadersSchema,
7558
+ LeaveDashboardSpaceSelfErrorSchema,
7559
+ LeaveDashboardSpaceSelfPathParamsSchema,
7560
+ LeaveDashboardSpaceSelfRequestBodySchema,
7561
+ LeaveDashboardSpaceSelfRequestHeadersSchema,
7562
+ LeaveDashboardSpaceSelfRequestSchema,
7339
7563
  ListAPIKeysErrorSchema,
7340
7564
  ListAPIKeysPathParamsSchema,
7341
7565
  ListAPIKeysQueryParamsSchema,
@@ -7513,6 +7737,11 @@ export {
7513
7737
  RedeliverWebhookDeliveryPathParamsSchema,
7514
7738
  RedeliverWebhookDeliveryRequestHeadersSchema,
7515
7739
  RedeliverWebhookDeliveryResponseSchema,
7740
+ RefreshDashboardSpaceSelfAccess429ResponseHeadersSchema,
7741
+ RefreshDashboardSpaceSelfAccessErrorSchema,
7742
+ RefreshDashboardSpaceSelfAccessPathParamsSchema,
7743
+ RefreshDashboardSpaceSelfAccessRequestBodySchema,
7744
+ RefreshDashboardSpaceSelfAccessResponseSchema,
7516
7745
  RefreshIntegrationConnection429ResponseHeadersSchema,
7517
7746
  RefreshIntegrationConnectionErrorSchema,
7518
7747
  RefreshIntegrationConnectionPathParamsSchema,
@@ -7605,6 +7834,12 @@ export {
7605
7834
  SpaceInvalidIdError,
7606
7835
  SpaceInvalidIdErrorSchema,
7607
7836
  SpaceInvalidIdErrorWireSchema,
7837
+ SpaceInvalidMediaPlaneError,
7838
+ SpaceInvalidMediaPlaneErrorSchema,
7839
+ SpaceInvalidMediaPlaneErrorWireSchema,
7840
+ SpaceInvalidSlugError,
7841
+ SpaceInvalidSlugErrorSchema,
7842
+ SpaceInvalidSlugErrorWireSchema,
7608
7843
  SpaceListSchema,
7609
7844
  SpaceNotFoundError,
7610
7845
  SpaceNotFoundErrorSchema,