@leaflow/sdk 0.176.0 → 0.178.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) 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/iam/v1/generated/functions.d.ts +139 -1
  85. package/dist/iam/v1/generated/functions.js +151 -0
  86. package/dist/iam/v1/generated/models.d.ts +96 -0
  87. package/dist/iam/v1/generated/models.js +13 -0
  88. package/dist/iam/v1/generated/schemas.zod.d.ts +71 -0
  89. package/dist/iam/v1/generated/schemas.zod.js +76 -0
  90. package/dist/iam/v1/generated/validators/applicationResource.zod.d.ts +36 -0
  91. package/dist/iam/v1/generated/validators/applicationResource.zod.js +27 -0
  92. package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.d.ts +28 -0
  93. package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.js +26 -0
  94. package/dist/iam/v1/generated/validators/createApplicationResponseBody.zod.d.ts +39 -0
  95. package/dist/iam/v1/generated/validators/createApplicationResponseBody.zod.js +23 -0
  96. package/dist/iam/v1/generated/validators/lengthAwarePageApplicationResource.zod.d.ts +41 -0
  97. package/dist/iam/v1/generated/validators/lengthAwarePageApplicationResource.zod.js +22 -0
  98. package/dist/iam/v1/generated/validators/listApplicationsParams.zod.d.ts +28 -0
  99. package/dist/iam/v1/generated/validators/listApplicationsParams.zod.js +34 -0
  100. package/dist/iam/v1/generated/validators/rotateApplicationSecretResponseBody.zod.d.ts +21 -0
  101. package/dist/iam/v1/generated/validators/rotateApplicationSecretResponseBody.zod.js +19 -0
  102. package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.d.ts +24 -0
  103. package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.js +26 -0
  104. package/dist/index.d.ts +1 -0
  105. package/dist/index.js +1 -0
  106. package/dist/monitoring/v1/generated/schemas.zod.d.ts +1 -1
  107. package/dist/monitoring/v1/generated/validators/lengthAwarePageServerResource.zod.d.ts +1 -1
  108. package/dist/monitoring/v1/generated/validators/listServersParams.zod.d.ts +1 -1
  109. package/dist/monitoring/v1/generated/validators/serverEnrollmentResponseBody.zod.d.ts +1 -1
  110. package/dist/monitoring/v1/generated/validators/serverResource.zod.d.ts +1 -1
  111. package/dist/routes.d.ts +112 -0
  112. package/dist/routes.js +126 -0
  113. 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
+ });
@@ -0,0 +1,3 @@
1
+ export * from "./generated/functions.js";
2
+ export * from "./generated/models.js";
3
+ export * as schemas from "./generated/schemas.zod.js";
@@ -0,0 +1,3 @@
1
+ export * from "./generated/functions.js";
2
+ export * from "./generated/models.js";
3
+ export * as schemas from "./generated/schemas.zod.js";
@@ -12,7 +12,7 @@
12
12
  * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
13
  * OpenAPI spec version: 1.0.0
14
14
  */
15
- import type { AttachPolicyRequestBody, BatchGetMembersRequestBody, BatchGetMembersResponseBody, CatalogListResponseBody, CreateRoleRequestBody, CreateSSHKeyRequestBody, Error, IssueInvitationRequestBody, IssuedInvitationResponseBody, LengthAwarePageInvitationResource, LengthAwarePageMemberResource, LengthAwarePageSSHKeyResource, ListMembersParams, ListPoliciesParams, ListProjectInvitationsParams, ListSshKeysParams, MemberResource, MembershipResource, OwnershipTransferResponseBody, PolicyListResponseBody, PolicyResource, ProjectAccessResource, QuotaListResponseBody, RenameSSHKeyRequestBody, RoleListResponseBody, RoleResource, SSHKeyResource, SetMemberPermissionsRequestBody, SetMemberRolesRequestBody, SetProjectSlugRequestBody, TransferOwnershipRequestBody, UpdatePolicyRequestBody, UpdateProjectRequestBody, UpdateRoleRequestBody } from "./models.js";
15
+ import type { ApplicationResource, AttachPolicyRequestBody, BatchGetMembersRequestBody, BatchGetMembersResponseBody, CatalogListResponseBody, CreateApplicationRequestBody, CreateApplicationResponseBody, CreateRoleRequestBody, CreateSSHKeyRequestBody, Error, IssueInvitationRequestBody, IssuedInvitationResponseBody, LengthAwarePageApplicationResource, LengthAwarePageInvitationResource, LengthAwarePageMemberResource, LengthAwarePageSSHKeyResource, ListApplicationsParams, ListMembersParams, ListPoliciesParams, ListProjectInvitationsParams, ListSshKeysParams, MemberResource, MembershipResource, OwnershipTransferResponseBody, PolicyListResponseBody, PolicyResource, ProjectAccessResource, QuotaListResponseBody, RenameSSHKeyRequestBody, RoleListResponseBody, RoleResource, RotateApplicationSecretResponseBody, SSHKeyResource, SetMemberPermissionsRequestBody, SetMemberRolesRequestBody, SetProjectSlugRequestBody, TransferOwnershipRequestBody, UpdateApplicationRequestBody, UpdatePolicyRequestBody, UpdateProjectRequestBody, UpdateRoleRequestBody } from "./models.js";
16
16
  export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
17
17
  export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
18
18
  export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
@@ -677,3 +677,141 @@ export declare const getRevokeSshKeyUrl: (keyId: string) => string;
677
677
  * @summary Revoke an SSH key
678
678
  */
679
679
  export declare const revokeSshKey: (keyId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<revokeSshKeyResponse>;
680
+ export type listApplicationsResponse200 = {
681
+ data: LengthAwarePageApplicationResource;
682
+ status: 200;
683
+ };
684
+ export type listApplicationsResponseDefault = {
685
+ data: Error;
686
+ status: Exclude<HTTPStatusCodes, 200>;
687
+ };
688
+ export type listApplicationsResponseSuccess = listApplicationsResponse200 & {
689
+ headers: Headers;
690
+ };
691
+ export type listApplicationsResponseError = listApplicationsResponseDefault & {
692
+ headers: Headers;
693
+ };
694
+ export type listApplicationsResponse = listApplicationsResponseSuccess | listApplicationsResponseError;
695
+ export declare const getListApplicationsUrl: (params?: ListApplicationsParams) => string;
696
+ /**
697
+ * Disabled applications are listed. Archived applications are omitted unless
698
+ * `include_archived` is true. An application that is still being created is not listed.
699
+ * @summary List the applications of this project
700
+ */
701
+ export declare const listApplications: (params?: ListApplicationsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listApplicationsResponse>;
702
+ export type createApplicationResponse201 = {
703
+ data: CreateApplicationResponseBody;
704
+ status: 201;
705
+ };
706
+ export type createApplicationResponseDefault = {
707
+ data: Error;
708
+ status: Exclude<HTTPStatusCodes, 201>;
709
+ };
710
+ export type createApplicationResponseSuccess = createApplicationResponse201 & {
711
+ headers: Headers;
712
+ };
713
+ export type createApplicationResponseError = createApplicationResponseDefault & {
714
+ headers: Headers;
715
+ };
716
+ export type createApplicationResponse = createApplicationResponseSuccess | createApplicationResponseError;
717
+ export declare const getCreateApplicationUrl: () => string;
718
+ /**
719
+ * Creates an OIDC client for an application of this project. Applications authenticate
720
+ * against `https://auth.leaflow.net/realms/user`.
721
+ *
722
+ * The `secret` is present only for a confidential application, and only in this response.
723
+ * It is not stored and cannot be read again; use `:rotateSecret` to obtain a new one.
724
+ *
725
+ * Any account of this platform may sign in to the application. Membership of this project
726
+ * is confirmed only when a token is exchanged for a scoped token.
727
+ * @summary Create an application
728
+ */
729
+ export declare const createApplication: (createApplicationRequestBody: CreateApplicationRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createApplicationResponse>;
730
+ export type getApplicationResponse200 = {
731
+ data: ApplicationResource;
732
+ status: 200;
733
+ };
734
+ export type getApplicationResponseDefault = {
735
+ data: Error;
736
+ status: Exclude<HTTPStatusCodes, 200>;
737
+ };
738
+ export type getApplicationResponseSuccess = getApplicationResponse200 & {
739
+ headers: Headers;
740
+ };
741
+ export type getApplicationResponseError = getApplicationResponseDefault & {
742
+ headers: Headers;
743
+ };
744
+ export type getApplicationResponse = getApplicationResponseSuccess | getApplicationResponseError;
745
+ export declare const getGetApplicationUrl: (applicationId: string) => string;
746
+ /**
747
+ * An application that has been deleted is still returned, with `status` `ARCHIVED`.
748
+ * @summary Get an application
749
+ */
750
+ export declare const getApplication: (applicationId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getApplicationResponse>;
751
+ export type updateApplicationResponse200 = {
752
+ data: ApplicationResource;
753
+ status: 200;
754
+ };
755
+ export type updateApplicationResponseDefault = {
756
+ data: Error;
757
+ status: Exclude<HTTPStatusCodes, 200>;
758
+ };
759
+ export type updateApplicationResponseSuccess = updateApplicationResponse200 & {
760
+ headers: Headers;
761
+ };
762
+ export type updateApplicationResponseError = updateApplicationResponseDefault & {
763
+ headers: Headers;
764
+ };
765
+ export type updateApplicationResponse = updateApplicationResponseSuccess | updateApplicationResponseError;
766
+ export declare const getUpdateApplicationUrl: (applicationId: string) => string;
767
+ /**
768
+ * Only the name and the redirect URIs can change. The type and `client_id` never change.
769
+ *
770
+ * An application that is disabled or deleted cannot be updated.
771
+ * @summary Update an application
772
+ */
773
+ export declare const updateApplication: (applicationId: string, updateApplicationRequestBody: UpdateApplicationRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateApplicationResponse>;
774
+ export type deleteApplicationResponse200 = {
775
+ data: ApplicationResource;
776
+ status: 200;
777
+ };
778
+ export type deleteApplicationResponseDefault = {
779
+ data: Error;
780
+ status: Exclude<HTTPStatusCodes, 200>;
781
+ };
782
+ export type deleteApplicationResponseSuccess = deleteApplicationResponse200 & {
783
+ headers: Headers;
784
+ };
785
+ export type deleteApplicationResponseError = deleteApplicationResponseDefault & {
786
+ headers: Headers;
787
+ };
788
+ export type deleteApplicationResponse = deleteApplicationResponseSuccess | deleteApplicationResponseError;
789
+ export declare const getDeleteApplicationUrl: (applicationId: string) => string;
790
+ /**
791
+ * The application is removed from the identity provider and its row is retained with
792
+ * `status` `ARCHIVED`. Repeating the call returns the same resource.
793
+ * @summary Delete an application
794
+ */
795
+ export declare const deleteApplication: (applicationId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteApplicationResponse>;
796
+ export type rotateApplicationSecretResponse200 = {
797
+ data: RotateApplicationSecretResponseBody;
798
+ status: 200;
799
+ };
800
+ export type rotateApplicationSecretResponseDefault = {
801
+ data: Error;
802
+ status: Exclude<HTTPStatusCodes, 200>;
803
+ };
804
+ export type rotateApplicationSecretResponseSuccess = rotateApplicationSecretResponse200 & {
805
+ headers: Headers;
806
+ };
807
+ export type rotateApplicationSecretResponseError = rotateApplicationSecretResponseDefault & {
808
+ headers: Headers;
809
+ };
810
+ export type rotateApplicationSecretResponse = rotateApplicationSecretResponseSuccess | rotateApplicationSecretResponseError;
811
+ export declare const getRotateApplicationSecretUrl: (applicationId: string) => string;
812
+ /**
813
+ * Returns a new secret and invalidates the previous one immediately. Only an active
814
+ * confidential application has a secret; any other state answers 412.
815
+ * @summary Rotate the secret of an application
816
+ */
817
+ export declare const rotateApplicationSecret: (applicationId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<rotateApplicationSecretResponse>;