@leaflow/sdk 0.0.0-dev.429.gf6440ec → 0.0.0-dev.433.g7e48b8f

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,58 @@
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 eventListTotalCountMin = 0;
41
+ export declare const EventList: zod.ZodObject<{
42
+ items: zod.ZodArray<zod.ZodObject<{
43
+ name: zod.ZodString;
44
+ project_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
45
+ description: zod.ZodString;
46
+ status: zod.ZodEnum<{
47
+ active: "active";
48
+ archived: "archived";
49
+ }>;
50
+ tags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
51
+ latest_version: zod.ZodOptional<zod.ZodInt>;
52
+ }, zod.z.core.$strict>>;
53
+ total_count: zod.ZodInt;
54
+ page: zod.ZodInt;
55
+ page_size: zod.ZodInt;
56
+ }, zod.z.core.$strict>;
57
+ export type EventList = zod.input<typeof EventList>;
58
+ export type EventListOutput = zod.output<typeof EventList>;
@@ -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
+ import { EventResource } from "./eventResource.zod.js";
41
+ export const eventListTotalCountMin = 0;
42
+ export const EventList = zod.strictObject({
43
+ items: zod.array(EventResource),
44
+ total_count: zod
45
+ .int()
46
+ .min(eventListTotalCountMin)
47
+ .describe("The number of events matching the filters"),
48
+ page: zod.int().min(1),
49
+ page_size: zod.int().min(1),
50
+ });
@@ -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 declare const eventResourceNameMax = 128;
41
+ export declare const eventResourceDescriptionMax = 1024;
42
+ export declare const eventResourceTagsItemMax = 64;
43
+ export declare const EventResource: 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
+ }, zod.z.core.$strict>;
54
+ export type EventResource = zod.input<typeof EventResource>;
55
+ export type EventResourceOutput = zod.output<typeof EventResource>;
@@ -0,0 +1,60 @@
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 eventResourceNameMax = 128;
42
+ export const eventResourceDescriptionMax = 1024;
43
+ export const eventResourceTagsItemMax = 64;
44
+ export const EventResource = zod.strictObject({
45
+ name: zod.string().max(eventResourceNameMax).describe("The full event name"),
46
+ project_id: zod.uuid().nullish().describe("The owning project; absent for a global event"),
47
+ description: zod
48
+ .string()
49
+ .max(eventResourceDescriptionMax)
50
+ .describe("What the event means, for developers"),
51
+ status: EventStatus,
52
+ tags: zod
53
+ .array(zod.string().max(eventResourceTagsItemMax))
54
+ .optional()
55
+ .describe("Free-form labels for grouping"),
56
+ latest_version: zod
57
+ .int()
58
+ .optional()
59
+ .describe("The highest active version; absent when the event has none"),
60
+ });
@@ -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 EventStatus: zod.ZodEnum<{
41
+ active: "active";
42
+ archived: "archived";
43
+ }>;
44
+ export type EventStatus = zod.input<typeof EventStatus>;
45
+ export type EventStatusOutput = zod.output<typeof EventStatus>;
@@ -0,0 +1,42 @@
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 EventStatus = zod
41
+ .enum(["active", "archived"])
42
+ .describe("`active` accepts new messages. `archived` keeps existing versions readable but rejects new\nmessages.");
@@ -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 EventVersion: 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
+ status: zod.ZodEnum<{
45
+ active: "active";
46
+ archived: "archived";
47
+ }>;
48
+ schema_hash: zod.ZodString;
49
+ }, zod.z.core.$strict>;
50
+ export type EventVersion = zod.input<typeof EventVersion>;
51
+ export type EventVersionOutput = zod.output<typeof EventVersion>;
@@ -0,0 +1,53 @@
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 EventVersion = zod.strictObject({
41
+ version: zod.int().min(1).describe("The version number, starting at 1"),
42
+ schema: zod
43
+ .record(zod.string(), zod.unknown())
44
+ .describe("The JSON Schema every payload of this version must satisfy"),
45
+ data_example: zod
46
+ .record(zod.string(), zod.unknown())
47
+ .optional()
48
+ .describe("An example payload that satisfies the schema"),
49
+ status: zod
50
+ .enum(["active", "archived"])
51
+ .describe("`active` versions accept new messages. `archived` versions stay readable but reject new\nmessages."),
52
+ schema_hash: zod.string().describe("A stable hash of the schema's shape"),
53
+ });
@@ -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 FieldViolation: zod.ZodObject<{
41
+ field: zod.ZodString;
42
+ reason: zod.ZodOptional<zod.ZodString>;
43
+ }, zod.z.core.$strict>;
44
+ export type FieldViolation = zod.input<typeof FieldViolation>;
45
+ export type FieldViolationOutput = zod.output<typeof FieldViolation>;
@@ -0,0 +1,48 @@
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 FieldViolation = zod.strictObject({
41
+ field: zod
42
+ .string()
43
+ .describe("The path to the rejected field in the request body, such as `items[2].price_id`."),
44
+ reason: zod
45
+ .string()
46
+ .optional()
47
+ .describe("Why the field was rejected, such as `REQUIRED` or `OUT_OF_RANGE`."),
48
+ });
@@ -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 declare const listEventsParamsPageDefault = 1;
41
+ export declare const listEventsParamsPageMax = 2147483647;
42
+ export declare const listEventsParamsPageSizeDefault = 50;
43
+ export declare const listEventsParamsPageSizeMax = 200;
44
+ export declare const listEventsParamsNamespaceMax = 64;
45
+ export declare const listEventsParamsKeywordMax = 128;
46
+ export declare const listEventsParamsIncludeArchivedDefault = false;
47
+ export declare const ListEventsParams: zod.ZodObject<{
48
+ page: zod.ZodDefault<zod.ZodInt>;
49
+ page_size: zod.ZodDefault<zod.ZodInt>;
50
+ namespace: zod.ZodOptional<zod.ZodString>;
51
+ keyword: zod.ZodOptional<zod.ZodString>;
52
+ include_archived: zod.ZodDefault<zod.ZodBoolean>;
53
+ }, zod.z.core.$strict>;
54
+ export type ListEventsParams = zod.input<typeof ListEventsParams>;
55
+ export type ListEventsParamsOutput = zod.output<typeof ListEventsParams>;
@@ -0,0 +1,57 @@
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 listEventsParamsPageDefault = 1;
41
+ export const listEventsParamsPageMax = 2147483647;
42
+ export const listEventsParamsPageSizeDefault = 50;
43
+ export const listEventsParamsPageSizeMax = 200;
44
+ export const listEventsParamsNamespaceMax = 64;
45
+ export const listEventsParamsKeywordMax = 128;
46
+ export const listEventsParamsIncludeArchivedDefault = false;
47
+ export const ListEventsParams = zod.strictObject({
48
+ page: zod.int().min(1).max(listEventsParamsPageMax).default(listEventsParamsPageDefault),
49
+ page_size: zod
50
+ .int()
51
+ .min(1)
52
+ .max(listEventsParamsPageSizeMax)
53
+ .default(listEventsParamsPageSizeDefault),
54
+ namespace: zod.string().max(listEventsParamsNamespaceMax).optional(),
55
+ keyword: zod.string().max(listEventsParamsKeywordMax).optional(),
56
+ include_archived: zod.boolean().default(listEventsParamsIncludeArchivedDefault),
57
+ });