@q9labsai/chalk-client 4.0.1 → 4.1.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/README.md +5 -7
- package/dist/{chunk-DOUU3EKN.js → chunk-LVTAM2DP.js} +30 -4
- package/dist/client.d.ts +302 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/connection/lifecycle.d.ts.map +1 -1
- package/dist/effect.js +223 -14
- package/dist/generated/http-api.d.ts +299 -0
- package/dist/generated/http-api.d.ts.map +1 -1
- package/dist/generated/schemas.d.ts +395 -0
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/server/client.d.ts.map +1 -1
- package/dist/server/index.cjs +14 -2
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +14 -2
- package/dist/server/types.d.cts +19 -0
- package/dist/server/types.d.ts +19 -0
- package/dist/server/types.d.ts.map +1 -1
- package/dist/space-client/core.d.ts.map +1 -1
- package/dist/space-client/index.d.ts +1 -1
- package/dist/space-client/index.d.ts.map +1 -1
- package/dist/space-client/types.d.ts +7 -1
- package/dist/space-client/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/effect.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
makeSpaceClientCoreLayer,
|
|
18
18
|
makeSpaceClientCoreLayerFromServices,
|
|
19
19
|
makeSpaceStoreLayer
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LVTAM2DP.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}-[
|
|
66
|
-
var UUIDSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[
|
|
67
|
-
var TenantIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[
|
|
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}-[
|
|
109
|
-
var ParticipantIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[
|
|
110
|
-
var SpaceIdSchema = Schema.String.check(Schema.isMinLength(36), Schema.isMaxLength(36), Schema.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[
|
|
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}-[
|
|
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,
|
|
@@ -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}-[
|
|
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}-[
|
|
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 =
|
|
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}-[
|
|
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,25 @@ var SpaceInvalidIdErrorSchema = SpaceInvalidIdErrorWireSchema.pipe(
|
|
|
3406
3448
|
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
3407
3449
|
})
|
|
3408
3450
|
);
|
|
3451
|
+
var SpaceInvalidSlugError = class extends Schema.TaggedErrorClass()("SpaceInvalidSlugError", {
|
|
3452
|
+
error: Schema.Struct({
|
|
3453
|
+
code: Schema.Literal("space.invalid_slug"),
|
|
3454
|
+
message: Schema.String
|
|
3455
|
+
})
|
|
3456
|
+
}) {
|
|
3457
|
+
};
|
|
3458
|
+
var SpaceInvalidSlugErrorWireSchema = Schema.Struct({
|
|
3459
|
+
error: Schema.Struct({
|
|
3460
|
+
code: Schema.Literal("space.invalid_slug"),
|
|
3461
|
+
message: Schema.String
|
|
3462
|
+
})
|
|
3463
|
+
});
|
|
3464
|
+
var SpaceInvalidSlugErrorSchema = SpaceInvalidSlugErrorWireSchema.pipe(
|
|
3465
|
+
Schema.decodeTo(SpaceInvalidSlugError, {
|
|
3466
|
+
decode: SchemaGetter.transform((wire) => ({ _tag: "SpaceInvalidSlugError", ...wire })),
|
|
3467
|
+
encode: SchemaGetter.transform((error) => ({ error: error.error }))
|
|
3468
|
+
})
|
|
3469
|
+
);
|
|
3409
3470
|
var SpaceNotFoundError = class extends Schema.TaggedErrorClass()("SpaceNotFoundError", {
|
|
3410
3471
|
error: Schema.Struct({
|
|
3411
3472
|
code: Schema.Literal("space.not_found"),
|
|
@@ -4313,6 +4374,7 @@ var CreateAPIKeyErrorSchema = Schema.Union([
|
|
|
4313
4374
|
var CreateEpisodeErrorSchema = Schema.Union([
|
|
4314
4375
|
AccessForbiddenErrorSchema,
|
|
4315
4376
|
AccessUnauthenticatedErrorSchema,
|
|
4377
|
+
EpisodeCapacityExceededErrorSchema,
|
|
4316
4378
|
EpisodeNotFoundErrorSchema,
|
|
4317
4379
|
RequestIdempotencyConflictErrorSchema,
|
|
4318
4380
|
RequestInvalidErrorSchema,
|
|
@@ -4738,6 +4800,41 @@ var IssueEpisodeParticipantSyncTokenErrorSchema = Schema.Union([
|
|
|
4738
4800
|
TenantInvalidIdErrorSchema
|
|
4739
4801
|
]);
|
|
4740
4802
|
var IssueRecentAuthProofErrorSchema = Schema.Union([AccessUnauthenticatedErrorSchema, AuthInvalidRecentAuthErrorSchema, RequestInvalidErrorSchema, RequestPayloadTooLargeErrorSchema, RequestRateLimitedErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema]);
|
|
4803
|
+
var JoinDashboardSpaceSelfErrorSchema = Schema.Union([
|
|
4804
|
+
AccessForbiddenErrorSchema,
|
|
4805
|
+
AccessUnauthenticatedErrorSchema,
|
|
4806
|
+
EpisodeCapacityExceededErrorSchema,
|
|
4807
|
+
EpisodeNotActiveErrorSchema,
|
|
4808
|
+
MediaUnavailableErrorSchema,
|
|
4809
|
+
ParticipantNotActiveErrorSchema,
|
|
4810
|
+
RequestIdempotencyConflictErrorSchema,
|
|
4811
|
+
RequestInvalidErrorSchema,
|
|
4812
|
+
RequestInvalidIdempotencyKeyErrorSchema,
|
|
4813
|
+
RequestPayloadTooLargeErrorSchema,
|
|
4814
|
+
RequestRateLimitedErrorSchema,
|
|
4815
|
+
ServiceInternalErrorSchema,
|
|
4816
|
+
ServiceUnavailableErrorSchema,
|
|
4817
|
+
SpaceInvalidSlugErrorSchema,
|
|
4818
|
+
SpaceNotFoundErrorSchema,
|
|
4819
|
+
TenantInvalidIdErrorSchema
|
|
4820
|
+
]);
|
|
4821
|
+
var LeaveDashboardSpaceSelfErrorSchema = Schema.Union([
|
|
4822
|
+
AccessForbiddenErrorSchema,
|
|
4823
|
+
AccessUnauthenticatedErrorSchema,
|
|
4824
|
+
EpisodeNotActiveErrorSchema,
|
|
4825
|
+
ParticipantGenerationMismatchErrorSchema,
|
|
4826
|
+
ParticipantNotActiveErrorSchema,
|
|
4827
|
+
RequestIdempotencyConflictErrorSchema,
|
|
4828
|
+
RequestInvalidErrorSchema,
|
|
4829
|
+
RequestInvalidIdempotencyKeyErrorSchema,
|
|
4830
|
+
RequestPayloadTooLargeErrorSchema,
|
|
4831
|
+
RequestRateLimitedErrorSchema,
|
|
4832
|
+
ServiceInternalErrorSchema,
|
|
4833
|
+
ServiceUnavailableErrorSchema,
|
|
4834
|
+
SpaceInvalidSlugErrorSchema,
|
|
4835
|
+
SpaceNotFoundErrorSchema,
|
|
4836
|
+
TenantInvalidIdErrorSchema
|
|
4837
|
+
]);
|
|
4741
4838
|
var ListAPIKeysErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, PaginationInvalidCursorErrorSchema, PaginationInvalidPageSizeErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4742
4839
|
var ListAuditLogsErrorSchema = Schema.Union([AccessForbiddenErrorSchema, AccessUnauthenticatedErrorSchema, PaginationInvalidCursorErrorSchema, PaginationInvalidPageSizeErrorSchema, ServiceInternalErrorSchema, ServiceUnavailableErrorSchema, TenantInvalidIdErrorSchema]);
|
|
4743
4840
|
var ListCloudflareSFUPublicationsErrorSchema = Schema.Union([
|
|
@@ -4892,6 +4989,22 @@ var RedeliverWebhookDeliveryErrorSchema = Schema.Union([
|
|
|
4892
4989
|
WebhookInvalidUrlErrorSchema,
|
|
4893
4990
|
WebhookUnsafeUrlErrorSchema
|
|
4894
4991
|
]);
|
|
4992
|
+
var RefreshDashboardSpaceSelfAccessErrorSchema = Schema.Union([
|
|
4993
|
+
AccessForbiddenErrorSchema,
|
|
4994
|
+
AccessUnauthenticatedErrorSchema,
|
|
4995
|
+
EpisodeNotFoundErrorSchema,
|
|
4996
|
+
MediaUnavailableErrorSchema,
|
|
4997
|
+
ParticipantGenerationMismatchErrorSchema,
|
|
4998
|
+
ParticipantNotFoundErrorSchema,
|
|
4999
|
+
RequestInvalidErrorSchema,
|
|
5000
|
+
RequestPayloadTooLargeErrorSchema,
|
|
5001
|
+
RequestRateLimitedErrorSchema,
|
|
5002
|
+
ServiceInternalErrorSchema,
|
|
5003
|
+
ServiceUnavailableErrorSchema,
|
|
5004
|
+
SpaceInvalidSlugErrorSchema,
|
|
5005
|
+
SpaceNotFoundErrorSchema,
|
|
5006
|
+
TenantInvalidIdErrorSchema
|
|
5007
|
+
]);
|
|
4895
5008
|
var RefreshIntegrationConnectionErrorSchema = Schema.Union([
|
|
4896
5009
|
AccessForbiddenErrorSchema,
|
|
4897
5010
|
AccessUnauthenticatedErrorSchema,
|
|
@@ -5218,12 +5331,15 @@ var ChalkOperationPolicies = {
|
|
|
5218
5331
|
issueAccessGrant: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5219
5332
|
issueEpisodeParticipantSyncToken: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5220
5333
|
issueRecentAuthProof: { maxBodyBytes: 1048576, rateLimit: { limit: 10, policy: "auth.recent_auth", windowSeconds: 60 } },
|
|
5334
|
+
joinDashboardSpaceSelf: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5335
|
+
leaveDashboardSpaceSelf: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5221
5336
|
listEpisodes: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5222
5337
|
listWebhookDeliveries: { rateLimit: { limit: 300, policy: "v1.webhooks.read", windowSeconds: 60 } },
|
|
5223
5338
|
listWebhookEndpoints: { rateLimit: { limit: 300, policy: "v1.webhooks.read", windowSeconds: 60 } },
|
|
5224
5339
|
login: { maxBodyBytes: 1048576, rateLimit: { limit: 10, policy: "auth.login", windowSeconds: 60 } },
|
|
5225
5340
|
onboardTenant: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5226
5341
|
redeliverWebhookDelivery: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5342
|
+
refreshDashboardSpaceSelfAccess: { maxBodyBytes: 1048576, rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5227
5343
|
refreshIntegrationConnection: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
5228
5344
|
register: { maxBodyBytes: 1048576, rateLimit: { limit: 5, policy: "auth.register", windowSeconds: 60 } },
|
|
5229
5345
|
releaseRecordingReservation: { rateLimit: { limit: 60, policy: "v1.authenticated.write", windowSeconds: 60 } },
|
|
@@ -6041,6 +6157,7 @@ var episodesGroup = HttpApiGroup.make("episodes").add(
|
|
|
6041
6157
|
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
6042
6158
|
EpisodeNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6043
6159
|
SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6160
|
+
EpisodeCapacityExceededErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6044
6161
|
RequestIdempotencyConflictErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6045
6162
|
RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
|
|
6046
6163
|
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
@@ -6607,6 +6724,55 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
|
|
|
6607
6724
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6608
6725
|
]
|
|
6609
6726
|
})
|
|
6727
|
+
).add(
|
|
6728
|
+
HttpApiEndpoint.post("joinDashboardSpaceSelf", "/v1/tenants/:tenant_id/spaces/by-slug/:space_slug/participants/self", {
|
|
6729
|
+
params: JoinDashboardSpaceSelfPathParamsSchema,
|
|
6730
|
+
headers: JoinDashboardSpaceSelfRequestHeadersSchema,
|
|
6731
|
+
payload: JoinDashboardSpaceSelfRequestBodySchema,
|
|
6732
|
+
success: JoinDashboardSpaceSelfResponseSchema.pipe(HttpApiSchema.status(201)),
|
|
6733
|
+
error: [
|
|
6734
|
+
RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6735
|
+
RequestInvalidIdempotencyKeyErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6736
|
+
SpaceInvalidSlugErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6737
|
+
TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6738
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
6739
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
6740
|
+
SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6741
|
+
EpisodeCapacityExceededErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6742
|
+
EpisodeNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6743
|
+
ParticipantNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6744
|
+
RequestIdempotencyConflictErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6745
|
+
RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
|
|
6746
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
6747
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
6748
|
+
MediaUnavailableErrorSchema.pipe(HttpApiSchema.status(503)),
|
|
6749
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6750
|
+
]
|
|
6751
|
+
})
|
|
6752
|
+
).add(
|
|
6753
|
+
HttpApiEndpoint.delete("leaveDashboardSpaceSelf", "/v1/tenants/:tenant_id/spaces/by-slug/:space_slug/participants/self", {
|
|
6754
|
+
params: LeaveDashboardSpaceSelfPathParamsSchema,
|
|
6755
|
+
headers: LeaveDashboardSpaceSelfRequestHeadersSchema,
|
|
6756
|
+
payload: LeaveDashboardSpaceSelfRequestBodySchema,
|
|
6757
|
+
success: HttpApiSchema.Empty(204).pipe(HttpApiSchema.status(204)),
|
|
6758
|
+
error: [
|
|
6759
|
+
RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6760
|
+
RequestInvalidIdempotencyKeyErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6761
|
+
SpaceInvalidSlugErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6762
|
+
TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6763
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
6764
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
6765
|
+
SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6766
|
+
EpisodeNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6767
|
+
ParticipantGenerationMismatchErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6768
|
+
ParticipantNotActiveErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6769
|
+
RequestIdempotencyConflictErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6770
|
+
RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
|
|
6771
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
6772
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
6773
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6774
|
+
]
|
|
6775
|
+
})
|
|
6610
6776
|
).add(
|
|
6611
6777
|
HttpApiEndpoint.get("listSpaces", "/v1/tenants/:tenant_id/spaces", {
|
|
6612
6778
|
params: ListSpacesPathParamsSchema,
|
|
@@ -6623,6 +6789,28 @@ var spacesGroup = HttpApiGroup.make("spaces").add(
|
|
|
6623
6789
|
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6624
6790
|
]
|
|
6625
6791
|
})
|
|
6792
|
+
).add(
|
|
6793
|
+
HttpApiEndpoint.post("refreshDashboardSpaceSelfAccess", "/v1/tenants/:tenant_id/spaces/by-slug/:space_slug/participants/self/access-grants", {
|
|
6794
|
+
params: RefreshDashboardSpaceSelfAccessPathParamsSchema,
|
|
6795
|
+
payload: RefreshDashboardSpaceSelfAccessRequestBodySchema,
|
|
6796
|
+
success: RefreshDashboardSpaceSelfAccessResponseSchema.pipe(HttpApiSchema.status(201)),
|
|
6797
|
+
error: [
|
|
6798
|
+
RequestInvalidErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6799
|
+
SpaceInvalidSlugErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6800
|
+
TenantInvalidIdErrorSchema.pipe(HttpApiSchema.status(400)),
|
|
6801
|
+
AccessUnauthenticatedErrorSchema.pipe(HttpApiSchema.status(401)),
|
|
6802
|
+
AccessForbiddenErrorSchema.pipe(HttpApiSchema.status(403)),
|
|
6803
|
+
EpisodeNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6804
|
+
ParticipantNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6805
|
+
SpaceNotFoundErrorSchema.pipe(HttpApiSchema.status(404)),
|
|
6806
|
+
ParticipantGenerationMismatchErrorSchema.pipe(HttpApiSchema.status(409)),
|
|
6807
|
+
RequestPayloadTooLargeErrorSchema.pipe(HttpApiSchema.status(413)),
|
|
6808
|
+
RequestRateLimitedErrorSchema.pipe(HttpApiSchema.status(429)),
|
|
6809
|
+
ServiceInternalErrorSchema.pipe(HttpApiSchema.status(500)),
|
|
6810
|
+
MediaUnavailableErrorSchema.pipe(HttpApiSchema.status(503)),
|
|
6811
|
+
ServiceUnavailableErrorSchema.pipe(HttpApiSchema.status(503))
|
|
6812
|
+
]
|
|
6813
|
+
})
|
|
6626
6814
|
).add(
|
|
6627
6815
|
HttpApiEndpoint.post("restoreSpace", "/v1/tenants/:tenant_id/spaces/:space_id/restore", {
|
|
6628
6816
|
params: RestoreSpacePathParamsSchema,
|
|
@@ -7128,6 +7316,7 @@ export {
|
|
|
7128
7316
|
CreateWebhookEndpointRequestHeadersSchema,
|
|
7129
7317
|
CreateWebhookEndpointRequestSchema,
|
|
7130
7318
|
CreateWebhookEndpointResponseSchema,
|
|
7319
|
+
DashboardSpaceSelfJoinRequestSchema,
|
|
7131
7320
|
DateTimeStringSchema,
|
|
7132
7321
|
DeleteTranscript429ResponseHeadersSchema,
|
|
7133
7322
|
DeleteTranscriptErrorSchema,
|
|
@@ -7328,6 +7517,12 @@ export {
|
|
|
7328
7517
|
IssueRecentAuthProofErrorSchema,
|
|
7329
7518
|
IssueRecentAuthProofRequestBodySchema,
|
|
7330
7519
|
IssueRecentAuthProofResponseSchema,
|
|
7520
|
+
JoinDashboardSpaceSelf429ResponseHeadersSchema,
|
|
7521
|
+
JoinDashboardSpaceSelfErrorSchema,
|
|
7522
|
+
JoinDashboardSpaceSelfPathParamsSchema,
|
|
7523
|
+
JoinDashboardSpaceSelfRequestBodySchema,
|
|
7524
|
+
JoinDashboardSpaceSelfRequestHeadersSchema,
|
|
7525
|
+
JoinDashboardSpaceSelfResponseSchema,
|
|
7331
7526
|
JourneyEventBatchSchema,
|
|
7332
7527
|
JourneyEventIntakeSchema,
|
|
7333
7528
|
JourneyInvalidEventError,
|
|
@@ -7336,6 +7531,12 @@ export {
|
|
|
7336
7531
|
JourneyLedgerUnavailableError,
|
|
7337
7532
|
JourneyLedgerUnavailableErrorSchema,
|
|
7338
7533
|
JourneyLedgerUnavailableErrorWireSchema,
|
|
7534
|
+
LeaveDashboardSpaceSelf429ResponseHeadersSchema,
|
|
7535
|
+
LeaveDashboardSpaceSelfErrorSchema,
|
|
7536
|
+
LeaveDashboardSpaceSelfPathParamsSchema,
|
|
7537
|
+
LeaveDashboardSpaceSelfRequestBodySchema,
|
|
7538
|
+
LeaveDashboardSpaceSelfRequestHeadersSchema,
|
|
7539
|
+
LeaveDashboardSpaceSelfRequestSchema,
|
|
7339
7540
|
ListAPIKeysErrorSchema,
|
|
7340
7541
|
ListAPIKeysPathParamsSchema,
|
|
7341
7542
|
ListAPIKeysQueryParamsSchema,
|
|
@@ -7513,6 +7714,11 @@ export {
|
|
|
7513
7714
|
RedeliverWebhookDeliveryPathParamsSchema,
|
|
7514
7715
|
RedeliverWebhookDeliveryRequestHeadersSchema,
|
|
7515
7716
|
RedeliverWebhookDeliveryResponseSchema,
|
|
7717
|
+
RefreshDashboardSpaceSelfAccess429ResponseHeadersSchema,
|
|
7718
|
+
RefreshDashboardSpaceSelfAccessErrorSchema,
|
|
7719
|
+
RefreshDashboardSpaceSelfAccessPathParamsSchema,
|
|
7720
|
+
RefreshDashboardSpaceSelfAccessRequestBodySchema,
|
|
7721
|
+
RefreshDashboardSpaceSelfAccessResponseSchema,
|
|
7516
7722
|
RefreshIntegrationConnection429ResponseHeadersSchema,
|
|
7517
7723
|
RefreshIntegrationConnectionErrorSchema,
|
|
7518
7724
|
RefreshIntegrationConnectionPathParamsSchema,
|
|
@@ -7605,6 +7811,9 @@ export {
|
|
|
7605
7811
|
SpaceInvalidIdError,
|
|
7606
7812
|
SpaceInvalidIdErrorSchema,
|
|
7607
7813
|
SpaceInvalidIdErrorWireSchema,
|
|
7814
|
+
SpaceInvalidSlugError,
|
|
7815
|
+
SpaceInvalidSlugErrorSchema,
|
|
7816
|
+
SpaceInvalidSlugErrorWireSchema,
|
|
7608
7817
|
SpaceListSchema,
|
|
7609
7818
|
SpaceNotFoundError,
|
|
7610
7819
|
SpaceNotFoundErrorSchema,
|