@leaflow/sdk 0.176.0 → 0.177.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/canopy/v1/generated/models.d.ts +209 -9
- package/dist/canopy/v1/generated/models.js +27 -1
- package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/schemas.zod.js +3 -1
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +5 -0
- package/dist/canopy/v1/generated/validators/audioCapabilities.zod.d.ts +51 -0
- package/dist/canopy/v1/generated/validators/audioCapabilities.zod.js +67 -0
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -1
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +37 -0
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +20 -0
- package/dist/canopy/v1/generated/validators/imageCapabilities.zod.d.ts +52 -0
- package/dist/canopy/v1/generated/validators/imageCapabilities.zod.js +69 -0
- package/dist/canopy/v1/generated/validators/mediaUsage.zod.d.ts +52 -0
- package/dist/canopy/v1/generated/validators/mediaUsage.zod.js +61 -0
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +50 -0
- package/dist/canopy/v1/generated/validators/modelBilling.zod.d.ts +8 -1
- package/dist/canopy/v1/generated/validators/modelBilling.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +37 -0
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +13 -0
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +13 -0
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +50 -0
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +58 -1
- package/dist/canopy/v1/generated/validators/modelMeter.zod.d.ts +8 -1
- package/dist/canopy/v1/generated/validators/modelMeter.zod.js +21 -2
- package/dist/canopy/v1/generated/validators/modelParameter.zod.d.ts +58 -0
- package/dist/canopy/v1/generated/validators/modelParameter.zod.js +57 -0
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +58 -1
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +5 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -1
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +8 -1
- package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/totalsResource.zod.js +5 -0
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +5 -0
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/videoCapabilities.zod.d.ts +51 -0
- package/dist/canopy/v1/generated/validators/videoCapabilities.zod.js +69 -0
- package/dist/eventbus/v1/generated/functions.d.ts +336 -0
- package/dist/eventbus/v1/generated/functions.js +214 -0
- package/dist/eventbus/v1/generated/models.d.ts +364 -0
- package/dist/eventbus/v1/generated/models.js +8 -0
- package/dist/eventbus/v1/generated/schemas.zod.d.ts +138 -0
- package/dist/eventbus/v1/generated/schemas.zod.js +163 -0
- package/dist/eventbus/v1/generated/validators/createEventRequest.zod.d.ts +50 -0
- package/dist/eventbus/v1/generated/validators/createEventRequest.zod.js +59 -0
- package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.d.ts +46 -0
- package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.js +47 -0
- package/dist/eventbus/v1/generated/validators/cursorPagination.zod.d.ts +45 -0
- package/dist/eventbus/v1/generated/validators/cursorPagination.zod.js +45 -0
- package/dist/eventbus/v1/generated/validators/error.zod.d.ts +56 -0
- package/dist/eventbus/v1/generated/validators/error.zod.js +45 -0
- package/dist/eventbus/v1/generated/validators/errorStatus.zod.d.ts +54 -0
- package/dist/eventbus/v1/generated/validators/errorStatus.zod.js +69 -0
- package/dist/eventbus/v1/generated/validators/eventDetail.zod.d.ts +65 -0
- package/dist/eventbus/v1/generated/validators/eventDetail.zod.js +62 -0
- package/dist/eventbus/v1/generated/validators/eventList.zod.d.ts +58 -0
- package/dist/eventbus/v1/generated/validators/eventList.zod.js +50 -0
- package/dist/eventbus/v1/generated/validators/eventResource.zod.d.ts +55 -0
- package/dist/eventbus/v1/generated/validators/eventResource.zod.js +60 -0
- package/dist/eventbus/v1/generated/validators/eventStatus.zod.d.ts +45 -0
- package/dist/eventbus/v1/generated/validators/eventStatus.zod.js +42 -0
- package/dist/eventbus/v1/generated/validators/eventVersion.zod.d.ts +51 -0
- package/dist/eventbus/v1/generated/validators/eventVersion.zod.js +53 -0
- package/dist/eventbus/v1/generated/validators/fieldViolation.zod.d.ts +45 -0
- package/dist/eventbus/v1/generated/validators/fieldViolation.zod.js +48 -0
- package/dist/eventbus/v1/generated/validators/listEventsParams.zod.d.ts +55 -0
- package/dist/eventbus/v1/generated/validators/listEventsParams.zod.js +57 -0
- package/dist/eventbus/v1/generated/validators/offsetPagination.zod.d.ts +47 -0
- package/dist/eventbus/v1/generated/validators/offsetPagination.zod.js +47 -0
- package/dist/eventbus/v1/generated/validators/publishRequest.zod.d.ts +49 -0
- package/dist/eventbus/v1/generated/validators/publishRequest.zod.js +55 -0
- package/dist/eventbus/v1/generated/validators/publishResponse.zod.d.ts +47 -0
- package/dist/eventbus/v1/generated/validators/publishResponse.zod.js +47 -0
- package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.d.ts +46 -0
- package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.js +46 -0
- package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.d.ts +51 -0
- package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.js +54 -0
- package/dist/eventbus/v1/index.d.ts +3 -0
- package/dist/eventbus/v1/index.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/routes.d.ts +64 -0
- package/dist/routes.js +72 -0
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export declare const offsetPaginationTotalCountMin = 0;
|
|
41
|
+
export declare const OffsetPagination: zod.ZodObject<{
|
|
42
|
+
page: zod.ZodInt;
|
|
43
|
+
page_size: zod.ZodInt;
|
|
44
|
+
total_count: zod.ZodOptional<zod.ZodInt>;
|
|
45
|
+
}, zod.z.core.$strict>;
|
|
46
|
+
export type OffsetPagination = zod.input<typeof OffsetPagination>;
|
|
47
|
+
export type OffsetPaginationOutput = zod.output<typeof OffsetPagination>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export const offsetPaginationTotalCountMin = 0;
|
|
41
|
+
export const OffsetPagination = zod
|
|
42
|
+
.strictObject({
|
|
43
|
+
page: zod.int().min(1),
|
|
44
|
+
page_size: zod.int().min(1),
|
|
45
|
+
total_count: zod.int().min(offsetPaginationTotalCountMin).optional(),
|
|
46
|
+
})
|
|
47
|
+
.describe("Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan.");
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export declare const publishRequestVersionDefault = 0;
|
|
41
|
+
export declare const publishRequestVersionMin = 0;
|
|
42
|
+
export declare const publishRequestKeyMax = 256;
|
|
43
|
+
export declare const PublishRequest: zod.ZodObject<{
|
|
44
|
+
version: zod.ZodDefault<zod.ZodInt>;
|
|
45
|
+
key: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
data: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
47
|
+
}, zod.z.core.$strict>;
|
|
48
|
+
export type PublishRequest = zod.input<typeof PublishRequest>;
|
|
49
|
+
export type PublishRequestOutput = zod.output<typeof PublishRequest>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export const publishRequestVersionDefault = 0;
|
|
41
|
+
export const publishRequestVersionMin = 0;
|
|
42
|
+
export const publishRequestKeyMax = 256;
|
|
43
|
+
export const PublishRequest = zod.strictObject({
|
|
44
|
+
version: zod
|
|
45
|
+
.int()
|
|
46
|
+
.min(publishRequestVersionMin)
|
|
47
|
+
.default(publishRequestVersionDefault)
|
|
48
|
+
.describe("The version to validate against; zero selects the highest active version"),
|
|
49
|
+
key: zod
|
|
50
|
+
.string()
|
|
51
|
+
.max(publishRequestKeyMax)
|
|
52
|
+
.optional()
|
|
53
|
+
.describe("The ordering key. Messages with the same key reach an individual consumer in publication\norder. Defaults to the project id when absent."),
|
|
54
|
+
data: zod.record(zod.string(), zod.unknown()).describe("The message payload"),
|
|
55
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export declare const PublishResponse: zod.ZodObject<{
|
|
41
|
+
id: zod.ZodUUID;
|
|
42
|
+
event: zod.ZodString;
|
|
43
|
+
version: zod.ZodInt;
|
|
44
|
+
created_at: zod.z.ZodISODateTime;
|
|
45
|
+
}, zod.z.core.$strict>;
|
|
46
|
+
export type PublishResponse = zod.input<typeof PublishResponse>;
|
|
47
|
+
export type PublishResponseOutput = zod.output<typeof PublishResponse>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export const PublishResponse = zod.strictObject({
|
|
41
|
+
id: zod.uuid().describe("The message identity; consumers use it to discard duplicates"),
|
|
42
|
+
event: zod.string().describe("The event name"),
|
|
43
|
+
version: zod.int().min(1).describe("The version the payload was validated against"),
|
|
44
|
+
created_at: zod.iso
|
|
45
|
+
.datetime({ offset: true })
|
|
46
|
+
.describe("When the message was accepted, in UTC RFC 3339"),
|
|
47
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export declare const RealtimeTicket: zod.ZodObject<{
|
|
41
|
+
url: zod.ZodURL;
|
|
42
|
+
ticket: zod.ZodString;
|
|
43
|
+
expires_at: zod.z.ZodISODateTime;
|
|
44
|
+
}, zod.z.core.$strict>;
|
|
45
|
+
export type RealtimeTicket = zod.input<typeof RealtimeTicket>;
|
|
46
|
+
export type RealtimeTicketOutput = zod.output<typeof RealtimeTicket>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export const RealtimeTicket = zod.strictObject({
|
|
41
|
+
url: zod.url().describe("The WebSocket URL to connect to"),
|
|
42
|
+
ticket: zod.string().describe("The ticket to present when connecting"),
|
|
43
|
+
expires_at: zod.iso
|
|
44
|
+
.datetime({ offset: true })
|
|
45
|
+
.describe("When the ticket expires, in UTC RFC 3339"),
|
|
46
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
export declare const updateEventRequestDescriptionMax = 1024;
|
|
41
|
+
export declare const updateEventRequestTagsItemMax = 64;
|
|
42
|
+
export declare const UpdateEventRequest: zod.ZodObject<{
|
|
43
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
44
|
+
tags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
45
|
+
status: zod.ZodOptional<zod.ZodEnum<{
|
|
46
|
+
active: "active";
|
|
47
|
+
archived: "archived";
|
|
48
|
+
}>>;
|
|
49
|
+
}, zod.z.core.$strict>;
|
|
50
|
+
export type UpdateEventRequest = zod.input<typeof UpdateEventRequest>;
|
|
51
|
+
export type UpdateEventRequestOutput = zod.output<typeof UpdateEventRequest>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
+
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
+
*
|
|
12
|
+
* ## Definitions and messages
|
|
13
|
+
*
|
|
14
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
|
+
* not part of the event definition.
|
|
17
|
+
*
|
|
18
|
+
* A project event belongs to the current project. A global event has no `project_id`; it is
|
|
19
|
+
* defined by a platform service and is read-only in this API. Global events are listed alongside
|
|
20
|
+
* the project's own events.
|
|
21
|
+
*
|
|
22
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
24
|
+
* version.
|
|
25
|
+
*
|
|
26
|
+
* ## Publishing
|
|
27
|
+
*
|
|
28
|
+
* Publishing returns the identity of the message and does not wait for consumers. Messages are
|
|
29
|
+
* not stored and are not replayed: a consumer that connects later does not receive earlier
|
|
30
|
+
* messages. Consumers receive messages through the realtime API or the platform's service API.
|
|
31
|
+
*
|
|
32
|
+
* ## Realtime
|
|
33
|
+
*
|
|
34
|
+
* Create a ticket, connect to the returned URL with the ticket, and authenticate the connection
|
|
35
|
+
* with a scoped token. A ticket is single-use and short-lived. The connection ends when the
|
|
36
|
+
* token expires unless it is refreshed with a new scoped token for the same user and project.
|
|
37
|
+
* OpenAPI spec version: 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
import * as zod from "zod";
|
|
40
|
+
import { EventStatus } from "./eventStatus.zod.js";
|
|
41
|
+
export const updateEventRequestDescriptionMax = 1024;
|
|
42
|
+
export const updateEventRequestTagsItemMax = 64;
|
|
43
|
+
export const UpdateEventRequest = zod.strictObject({
|
|
44
|
+
description: zod
|
|
45
|
+
.string()
|
|
46
|
+
.max(updateEventRequestDescriptionMax)
|
|
47
|
+
.optional()
|
|
48
|
+
.describe("The new description"),
|
|
49
|
+
tags: zod
|
|
50
|
+
.array(zod.string().max(updateEventRequestTagsItemMax))
|
|
51
|
+
.optional()
|
|
52
|
+
.describe("The complete new tag list; an empty list removes every tag"),
|
|
53
|
+
status: EventStatus.optional(),
|
|
54
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * as billing from "./billing/v1/index.js";
|
|
|
4
4
|
export * as canopy from "./canopy/v1/index.js";
|
|
5
5
|
export * as compute from "./compute/v2/index.js";
|
|
6
6
|
export * as dns from "./dns/v1/index.js";
|
|
7
|
+
export * as eventbus from "./eventbus/v1/index.js";
|
|
7
8
|
export * as iam from "./iam/v1/index.js";
|
|
8
9
|
export * as membership from "./membership/v1/index.js";
|
|
9
10
|
export * as monitoring from "./monitoring/v1/index.js";
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * as billing from "./billing/v1/index.js";
|
|
|
4
4
|
export * as canopy from "./canopy/v1/index.js";
|
|
5
5
|
export * as compute from "./compute/v2/index.js";
|
|
6
6
|
export * as dns from "./dns/v1/index.js";
|
|
7
|
+
export * as eventbus from "./eventbus/v1/index.js";
|
|
7
8
|
export * as iam from "./iam/v1/index.js";
|
|
8
9
|
export * as membership from "./membership/v1/index.js";
|
|
9
10
|
export * as monitoring from "./monitoring/v1/index.js";
|
package/dist/routes.d.ts
CHANGED
|
@@ -2757,6 +2757,70 @@ export declare const routes: readonly [{
|
|
|
2757
2757
|
readonly operationId: "delete-record-set";
|
|
2758
2758
|
readonly securityScheme: "ScopedToken";
|
|
2759
2759
|
readonly upstreamUrl: "https://dns.leaflow.cloud";
|
|
2760
|
+
}, {
|
|
2761
|
+
readonly service: "eventbus";
|
|
2762
|
+
readonly contract: "eventbus";
|
|
2763
|
+
readonly method: "GET";
|
|
2764
|
+
readonly path: "/api/v1/events";
|
|
2765
|
+
readonly operationId: "list-events";
|
|
2766
|
+
readonly securityScheme: "ScopedToken";
|
|
2767
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2768
|
+
}, {
|
|
2769
|
+
readonly service: "eventbus";
|
|
2770
|
+
readonly contract: "eventbus";
|
|
2771
|
+
readonly method: "POST";
|
|
2772
|
+
readonly path: "/api/v1/events";
|
|
2773
|
+
readonly operationId: "create-event";
|
|
2774
|
+
readonly securityScheme: "ScopedToken";
|
|
2775
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2776
|
+
}, {
|
|
2777
|
+
readonly service: "eventbus";
|
|
2778
|
+
readonly contract: "eventbus";
|
|
2779
|
+
readonly method: "GET";
|
|
2780
|
+
readonly path: "/api/v1/events/{eventName}";
|
|
2781
|
+
readonly operationId: "get-event";
|
|
2782
|
+
readonly securityScheme: "ScopedToken";
|
|
2783
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2784
|
+
}, {
|
|
2785
|
+
readonly service: "eventbus";
|
|
2786
|
+
readonly contract: "eventbus";
|
|
2787
|
+
readonly method: "PATCH";
|
|
2788
|
+
readonly path: "/api/v1/events/{eventName}";
|
|
2789
|
+
readonly operationId: "update-event";
|
|
2790
|
+
readonly securityScheme: "ScopedToken";
|
|
2791
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2792
|
+
}, {
|
|
2793
|
+
readonly service: "eventbus";
|
|
2794
|
+
readonly contract: "eventbus";
|
|
2795
|
+
readonly method: "POST";
|
|
2796
|
+
readonly path: "/api/v1/events/{eventName}/versions";
|
|
2797
|
+
readonly operationId: "create-event-version";
|
|
2798
|
+
readonly securityScheme: "ScopedToken";
|
|
2799
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2800
|
+
}, {
|
|
2801
|
+
readonly service: "eventbus";
|
|
2802
|
+
readonly contract: "eventbus";
|
|
2803
|
+
readonly method: "GET";
|
|
2804
|
+
readonly path: "/api/v1/events/{eventName}/versions/{version}";
|
|
2805
|
+
readonly operationId: "get-event-version";
|
|
2806
|
+
readonly securityScheme: "ScopedToken";
|
|
2807
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2808
|
+
}, {
|
|
2809
|
+
readonly service: "eventbus";
|
|
2810
|
+
readonly contract: "eventbus";
|
|
2811
|
+
readonly method: "POST";
|
|
2812
|
+
readonly path: "/api/v1/events/{eventName}:publish";
|
|
2813
|
+
readonly operationId: "publish-event";
|
|
2814
|
+
readonly securityScheme: "ScopedToken";
|
|
2815
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2816
|
+
}, {
|
|
2817
|
+
readonly service: "eventbus";
|
|
2818
|
+
readonly contract: "eventbus";
|
|
2819
|
+
readonly method: "POST";
|
|
2820
|
+
readonly path: "/api/v1/realtime/tickets";
|
|
2821
|
+
readonly operationId: "create-realtime-ticket";
|
|
2822
|
+
readonly securityScheme: "ScopedToken";
|
|
2823
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2760
2824
|
}, {
|
|
2761
2825
|
readonly service: "iam";
|
|
2762
2826
|
readonly contract: "iam";
|