@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.
Files changed (88) hide show
  1. package/dist/canopy/v1/generated/models.d.ts +209 -9
  2. package/dist/canopy/v1/generated/models.js +27 -1
  3. package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -1
  4. package/dist/canopy/v1/generated/schemas.zod.js +3 -1
  5. package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +9 -0
  6. package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +9 -0
  7. package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +5 -0
  8. package/dist/canopy/v1/generated/validators/audioCapabilities.zod.d.ts +51 -0
  9. package/dist/canopy/v1/generated/validators/audioCapabilities.zod.js +67 -0
  10. package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -1
  11. package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +37 -0
  12. package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +20 -0
  13. package/dist/canopy/v1/generated/validators/imageCapabilities.zod.d.ts +52 -0
  14. package/dist/canopy/v1/generated/validators/imageCapabilities.zod.js +69 -0
  15. package/dist/canopy/v1/generated/validators/mediaUsage.zod.d.ts +52 -0
  16. package/dist/canopy/v1/generated/validators/mediaUsage.zod.js +61 -0
  17. package/dist/canopy/v1/generated/validators/model.zod.d.ts +50 -0
  18. package/dist/canopy/v1/generated/validators/modelBilling.zod.d.ts +8 -1
  19. package/dist/canopy/v1/generated/validators/modelBilling.zod.js +2 -2
  20. package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +37 -0
  21. package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +13 -0
  22. package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +13 -0
  23. package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +50 -0
  24. package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +58 -1
  25. package/dist/canopy/v1/generated/validators/modelMeter.zod.d.ts +8 -1
  26. package/dist/canopy/v1/generated/validators/modelMeter.zod.js +21 -2
  27. package/dist/canopy/v1/generated/validators/modelParameter.zod.d.ts +58 -0
  28. package/dist/canopy/v1/generated/validators/modelParameter.zod.js +57 -0
  29. package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +58 -1
  30. package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +9 -0
  31. package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +9 -0
  32. package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +5 -0
  33. package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -1
  34. package/dist/canopy/v1/generated/validators/requestResource.zod.js +8 -1
  35. package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +9 -0
  36. package/dist/canopy/v1/generated/validators/totalsResource.zod.js +5 -0
  37. package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +9 -0
  38. package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +5 -0
  39. package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +9 -0
  40. package/dist/canopy/v1/generated/validators/videoCapabilities.zod.d.ts +51 -0
  41. package/dist/canopy/v1/generated/validators/videoCapabilities.zod.js +69 -0
  42. package/dist/eventbus/v1/generated/functions.d.ts +336 -0
  43. package/dist/eventbus/v1/generated/functions.js +214 -0
  44. package/dist/eventbus/v1/generated/models.d.ts +364 -0
  45. package/dist/eventbus/v1/generated/models.js +8 -0
  46. package/dist/eventbus/v1/generated/schemas.zod.d.ts +138 -0
  47. package/dist/eventbus/v1/generated/schemas.zod.js +163 -0
  48. package/dist/eventbus/v1/generated/validators/createEventRequest.zod.d.ts +50 -0
  49. package/dist/eventbus/v1/generated/validators/createEventRequest.zod.js +59 -0
  50. package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.d.ts +46 -0
  51. package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.js +47 -0
  52. package/dist/eventbus/v1/generated/validators/cursorPagination.zod.d.ts +45 -0
  53. package/dist/eventbus/v1/generated/validators/cursorPagination.zod.js +45 -0
  54. package/dist/eventbus/v1/generated/validators/error.zod.d.ts +56 -0
  55. package/dist/eventbus/v1/generated/validators/error.zod.js +45 -0
  56. package/dist/eventbus/v1/generated/validators/errorStatus.zod.d.ts +54 -0
  57. package/dist/eventbus/v1/generated/validators/errorStatus.zod.js +69 -0
  58. package/dist/eventbus/v1/generated/validators/eventDetail.zod.d.ts +65 -0
  59. package/dist/eventbus/v1/generated/validators/eventDetail.zod.js +62 -0
  60. package/dist/eventbus/v1/generated/validators/eventList.zod.d.ts +58 -0
  61. package/dist/eventbus/v1/generated/validators/eventList.zod.js +50 -0
  62. package/dist/eventbus/v1/generated/validators/eventResource.zod.d.ts +55 -0
  63. package/dist/eventbus/v1/generated/validators/eventResource.zod.js +60 -0
  64. package/dist/eventbus/v1/generated/validators/eventStatus.zod.d.ts +45 -0
  65. package/dist/eventbus/v1/generated/validators/eventStatus.zod.js +42 -0
  66. package/dist/eventbus/v1/generated/validators/eventVersion.zod.d.ts +51 -0
  67. package/dist/eventbus/v1/generated/validators/eventVersion.zod.js +53 -0
  68. package/dist/eventbus/v1/generated/validators/fieldViolation.zod.d.ts +45 -0
  69. package/dist/eventbus/v1/generated/validators/fieldViolation.zod.js +48 -0
  70. package/dist/eventbus/v1/generated/validators/listEventsParams.zod.d.ts +55 -0
  71. package/dist/eventbus/v1/generated/validators/listEventsParams.zod.js +57 -0
  72. package/dist/eventbus/v1/generated/validators/offsetPagination.zod.d.ts +47 -0
  73. package/dist/eventbus/v1/generated/validators/offsetPagination.zod.js +47 -0
  74. package/dist/eventbus/v1/generated/validators/publishRequest.zod.d.ts +49 -0
  75. package/dist/eventbus/v1/generated/validators/publishRequest.zod.js +55 -0
  76. package/dist/eventbus/v1/generated/validators/publishResponse.zod.d.ts +47 -0
  77. package/dist/eventbus/v1/generated/validators/publishResponse.zod.js +47 -0
  78. package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.d.ts +46 -0
  79. package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.js +46 -0
  80. package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.d.ts +51 -0
  81. package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.js +54 -0
  82. package/dist/eventbus/v1/index.d.ts +3 -0
  83. package/dist/eventbus/v1/index.js +3 -0
  84. package/dist/index.d.ts +1 -0
  85. package/dist/index.js +1 -0
  86. package/dist/routes.d.ts +64 -0
  87. package/dist/routes.js +72 -0
  88. package/package.json +1 -1
@@ -0,0 +1,50 @@
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 createEventRequestNameMax = 128;
41
+ export declare const createEventRequestNameRegExp: RegExp;
42
+ export declare const createEventRequestDescriptionMax = 1024;
43
+ export declare const CreateEventRequest: zod.ZodObject<{
44
+ name: zod.ZodString;
45
+ description: zod.ZodOptional<zod.ZodString>;
46
+ schema: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
47
+ data_example: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
48
+ }, zod.z.core.$strict>;
49
+ export type CreateEventRequest = zod.input<typeof CreateEventRequest>;
50
+ export type CreateEventRequestOutput = zod.output<typeof CreateEventRequest>;
@@ -0,0 +1,59 @@
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 createEventRequestNameMax = 128;
41
+ export const createEventRequestNameRegExp = new RegExp("^[a-z](?:[a-z0-9_]*[a-z0-9])?(?:\\.[a-z](?:[a-z0-9_]*[a-z0-9])?){2,}$");
42
+ export const createEventRequestDescriptionMax = 1024;
43
+ export const CreateEventRequest = zod.strictObject({
44
+ name: zod
45
+ .string()
46
+ .max(createEventRequestNameMax)
47
+ .regex(createEventRequestNameRegExp)
48
+ .describe("The full event name; its first segment is the namespace"),
49
+ description: zod
50
+ .string()
51
+ .max(createEventRequestDescriptionMax)
52
+ .optional()
53
+ .describe("What the event means, for developers"),
54
+ schema: zod.record(zod.string(), zod.unknown()).describe("The JSON Schema for version 1"),
55
+ data_example: zod
56
+ .record(zod.string(), zod.unknown())
57
+ .optional()
58
+ .describe("An example payload that satisfies the schema"),
59
+ });
@@ -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 CreateVersionRequest: zod.ZodObject<{
41
+ version: zod.ZodInt;
42
+ schema: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
43
+ data_example: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
44
+ }, zod.z.core.$strict>;
45
+ export type CreateVersionRequest = zod.input<typeof CreateVersionRequest>;
46
+ export type CreateVersionRequestOutput = zod.output<typeof CreateVersionRequest>;
@@ -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 CreateVersionRequest = zod.strictObject({
41
+ version: zod.int().min(1).describe("The new version number, greater than every existing version"),
42
+ schema: zod.record(zod.string(), zod.unknown()).describe("The JSON Schema for this version"),
43
+ data_example: zod
44
+ .record(zod.string(), zod.unknown())
45
+ .optional()
46
+ .describe("An example payload that satisfies the schema"),
47
+ });
@@ -0,0 +1,45 @@
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 CursorPagination: zod.ZodObject<{
41
+ page_size: zod.ZodInt;
42
+ next_cursor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
43
+ }, zod.z.core.$strict>;
44
+ export type CursorPagination = zod.input<typeof CursorPagination>;
45
+ export type CursorPaginationOutput = zod.output<typeof CursorPagination>;
@@ -0,0 +1,45 @@
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 CursorPagination = zod
41
+ .strictObject({
42
+ page_size: zod.int().min(1),
43
+ next_cursor: zod.string().nullish(),
44
+ })
45
+ .describe("Pagination metadata for keyset traversal. Pass next_cursor as cursor to read the following page; null means there is no following page.");
@@ -0,0 +1,56 @@
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 Error: zod.ZodObject<{
41
+ error: zod.ZodObject<{
42
+ code: zod.ZodInt;
43
+ status: zod.ZodString;
44
+ message: zod.ZodString;
45
+ reason: zod.ZodOptional<zod.ZodString>;
46
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
47
+ field_violations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
48
+ field: zod.ZodString;
49
+ reason: zod.ZodOptional<zod.ZodString>;
50
+ }, zod.z.core.$strict>>>;
51
+ retry_delay: zod.ZodOptional<zod.ZodString>;
52
+ request_id: zod.ZodOptional<zod.ZodString>;
53
+ }, zod.z.core.$strict>;
54
+ }, zod.z.core.$strict>;
55
+ export type Error = zod.input<typeof Error>;
56
+ export type ErrorOutput = zod.output<typeof Error>;
@@ -0,0 +1,45 @@
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 { ErrorStatus } from "./errorStatus.zod.js";
41
+ export const Error = zod
42
+ .strictObject({
43
+ error: ErrorStatus,
44
+ })
45
+ .describe("A failed request. The envelope follows the Google REST error format: `code` is the HTTP\nstatus, `status` is its canonical name, and `reason` is the stable machine-readable code\nthat identifies the failure.");
@@ -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
+ export declare const ErrorStatus: zod.ZodObject<{
41
+ code: zod.ZodInt;
42
+ status: zod.ZodString;
43
+ message: zod.ZodString;
44
+ reason: zod.ZodOptional<zod.ZodString>;
45
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
46
+ field_violations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
47
+ field: zod.ZodString;
48
+ reason: zod.ZodOptional<zod.ZodString>;
49
+ }, zod.z.core.$strict>>>;
50
+ retry_delay: zod.ZodOptional<zod.ZodString>;
51
+ request_id: zod.ZodOptional<zod.ZodString>;
52
+ }, zod.z.core.$strict>;
53
+ export type ErrorStatus = zod.input<typeof ErrorStatus>;
54
+ export type ErrorStatusOutput = zod.output<typeof ErrorStatus>;
@@ -0,0 +1,69 @@
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 { FieldViolation } from "./fieldViolation.zod.js";
41
+ export const ErrorStatus = zod.strictObject({
42
+ code: zod.int().describe("The HTTP status code of the response."),
43
+ status: zod
44
+ .string()
45
+ .describe("The canonical name of the status, such as `INVALID_ARGUMENT` or `UNAVAILABLE`."),
46
+ message: zod
47
+ .string()
48
+ .describe("A description of the failure for developers. It is always English and is not meant\nto be shown to end users as is."),
49
+ reason: zod
50
+ .string()
51
+ .optional()
52
+ .describe("A stable machine-readable code identifying the failure. Clients branch on this value\nand render their own text; it does not change once published."),
53
+ metadata: zod
54
+ .record(zod.string(), zod.string())
55
+ .optional()
56
+ .describe("Values that belong to `reason`, one set per reason. Clients use them to fill in\nlocalized text and never parse `message` to obtain them. Keys are documented per\nreason; a key that has appeared once keeps appearing."),
57
+ field_violations: zod
58
+ .array(FieldViolation)
59
+ .optional()
60
+ .describe("Request fields rejected by the request's constraints. Present on validation\nfailures; one request may violate several fields."),
61
+ retry_delay: zod
62
+ .string()
63
+ .optional()
64
+ .describe("How long the client should wait before retrying, as a duration string such as\n`30s`. Present only when waiting can succeed."),
65
+ request_id: zod
66
+ .string()
67
+ .optional()
68
+ .describe("The identifier of the request in the service's logs. Quote it when reporting a\nfailure."),
69
+ });
@@ -0,0 +1,65 @@
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 eventDetailNameMax = 128;
41
+ export declare const eventDetailDescriptionMax = 1024;
42
+ export declare const eventDetailTagsItemMax = 64;
43
+ export declare const EventDetail: zod.ZodObject<{
44
+ name: zod.ZodString;
45
+ project_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
46
+ description: zod.ZodString;
47
+ status: zod.ZodEnum<{
48
+ active: "active";
49
+ archived: "archived";
50
+ }>;
51
+ tags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
52
+ latest_version: zod.ZodOptional<zod.ZodInt>;
53
+ versions: zod.ZodArray<zod.ZodObject<{
54
+ version: zod.ZodInt;
55
+ schema: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
56
+ data_example: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
57
+ status: zod.ZodEnum<{
58
+ active: "active";
59
+ archived: "archived";
60
+ }>;
61
+ schema_hash: zod.ZodString;
62
+ }, zod.z.core.$strict>>;
63
+ }, zod.z.core.$strict>;
64
+ export type EventDetail = zod.input<typeof EventDetail>;
65
+ export type EventDetailOutput = zod.output<typeof EventDetail>;
@@ -0,0 +1,62 @@
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
+ import { EventVersion } from "./eventVersion.zod.js";
42
+ export const eventDetailNameMax = 128;
43
+ export const eventDetailDescriptionMax = 1024;
44
+ export const eventDetailTagsItemMax = 64;
45
+ export const EventDetail = zod.strictObject({
46
+ name: zod.string().max(eventDetailNameMax).describe("The full event name"),
47
+ project_id: zod.uuid().nullish().describe("The owning project; absent for a global event"),
48
+ description: zod
49
+ .string()
50
+ .max(eventDetailDescriptionMax)
51
+ .describe("What the event means, for developers"),
52
+ status: EventStatus,
53
+ tags: zod
54
+ .array(zod.string().max(eventDetailTagsItemMax))
55
+ .optional()
56
+ .describe("Free-form labels for grouping"),
57
+ latest_version: zod
58
+ .int()
59
+ .optional()
60
+ .describe("The highest active version; absent when the event has none"),
61
+ versions: zod.array(EventVersion).describe("Every version, newest first"),
62
+ });