@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16

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 (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,30 +1,22 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
3
- import * as S from "@distilled.cloud/core/schema";
4
- import * as Redacted from "effect/Redacted";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import type * as Redacted from "effect/Redacted";
5
6
  import { UnknownStackitError } from "../errors.ts";
6
7
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
7
8
  import * as Retry from "../retry.ts";
8
9
  import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
9
12
 
10
13
  export type { StackitOpError, StackitOpContext };
11
14
 
12
15
  export type CreateFunctionRequestLabelsMap = { [key: string]: string | undefined };
13
- export const CreateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(
14
- S.String,
15
- S.String,
16
- ) as any as S.Schema<CreateFunctionRequestLabelsMap>;
17
-
18
16
  /** Status of this function's latest revision. */
19
17
  export type CreateFunctionRequestState = "CREATING" | "ACTIVE" | "FAILED";
20
- export const CreateFunctionRequestState = S.String;
21
-
22
18
  /** URLs that resolve to the function. */
23
19
  export type CreateFunctionRequestUrlList = Array<string>;
24
- export const CreateFunctionRequestUrlList = /*@__PURE__*/ S.Array(
25
- S.String,
26
- ) as any as S.Schema<CreateFunctionRequestUrlList>;
27
-
28
20
  export interface CreateFunctionRequest {
29
21
  /** The STACKIT portal project UUID the resource is located in. */
30
22
  projectId: string;
@@ -46,42 +38,11 @@ export interface CreateFunctionRequest {
46
38
  /** URLs that resolve to the function. */
47
39
  url?: CreateFunctionRequestUrlList;
48
40
  }
49
- export const CreateFunctionRequest = /*@__PURE__*/ S.suspend(() =>
50
- S.Struct({
51
- projectId: S.String.pipe(T.Label()),
52
- created_at: S.optional(S.String),
53
- current_revision: S.optional(S.String),
54
- id: S.optional(S.String),
55
- labels: S.optional(CreateFunctionRequestLabelsMap),
56
- name: S.String,
57
- state: S.optional(CreateFunctionRequestState),
58
- state_error: S.optional(S.String),
59
- updated_at: S.optional(S.String),
60
- url: S.optional(CreateFunctionRequestUrlList),
61
- }).pipe(
62
- T.Http({
63
- method: "POST",
64
- uri: "/v1alpha/projects/{projectId}/functions",
65
- code: 200,
66
- baseUrl: "https://functions.api.{region}stackit.cloud",
67
- }),
68
- ),
69
- ).annotate({ identifier: "CreateFunctionRequest" }) as any as S.Schema<CreateFunctionRequest>;
70
-
71
41
  export type FunctionLabelsMap = { [key: string]: string | undefined };
72
- export const FunctionLabelsMap = /*@__PURE__*/ S.Record(
73
- S.String,
74
- S.String,
75
- ) as any as S.Schema<FunctionLabelsMap>;
76
-
77
42
  /** Status of this function's latest revision. */
78
43
  export type FunctionState = "CREATING" | "ACTIVE" | "FAILED";
79
- export const FunctionState = S.String;
80
-
81
44
  /** URLs that resolve to the function. */
82
45
  export type FunctionUrlList = Array<string>;
83
- export const FunctionUrlList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<FunctionUrlList>;
84
-
85
46
  /** Represents a STACKIT Functions function. */
86
47
  export interface Function {
87
48
  /** Time the function was created. */
@@ -102,42 +63,14 @@ export interface Function {
102
63
  /** URLs that resolve to the function. */
103
64
  url?: FunctionUrlList;
104
65
  }
105
- export const Function = /*@__PURE__*/ S.suspend(() =>
106
- S.Struct({
107
- created_at: S.optional(S.String),
108
- current_revision: S.optional(S.String),
109
- id: S.optional(S.String),
110
- labels: S.optional(FunctionLabelsMap),
111
- name: S.String,
112
- state: S.optional(FunctionState),
113
- state_error: S.optional(S.String),
114
- updated_at: S.optional(S.String),
115
- url: S.optional(FunctionUrlList),
116
- }),
117
- ).annotate({ identifier: "Function" }) as any as S.Schema<Function>;
118
-
119
66
  export type CreateFunctionRevisionRequestLabelsMap = { [key: string]: string | undefined };
120
- export const CreateFunctionRevisionRequestLabelsMap = /*@__PURE__*/ S.Record(
121
- S.String,
122
- S.String,
123
- ) as any as S.Schema<CreateFunctionRevisionRequestLabelsMap>;
124
-
125
67
  /** Resource utilization limitations */
126
68
  export interface ResourceLimits {
127
69
  concurrency: number;
128
70
  plan: string;
129
71
  }
130
- export const ResourceLimits = /*@__PURE__*/ S.suspend(() =>
131
- S.Struct({
132
- concurrency: S.Number,
133
- plan: S.String,
134
- }),
135
- ).annotate({ identifier: "ResourceLimits" }) as any as S.Schema<ResourceLimits>;
136
-
137
72
  /** Status of this revision. */
138
73
  export type CreateFunctionRevisionRequestState = "CANCELLED" | "CREATING" | "ACTIVE" | "FAILED";
139
- export const CreateFunctionRevisionRequestState = S.String;
140
-
141
74
  /** Represents a variable value for a specific revision. */
142
75
  export interface RevisionVariable {
143
76
  /** Name of the variable (must match a variable definition on the function). */
@@ -147,20 +80,8 @@ export interface RevisionVariable {
147
80
  /** Reference to the vault secret. Only present for secret variables. */
148
81
  vault_reference?: string | null;
149
82
  }
150
- export const RevisionVariable = /*@__PURE__*/ S.suspend(() =>
151
- S.Struct({
152
- name: S.String,
153
- value: S.optional(S.NullOr(S.String)),
154
- vault_reference: S.optional(S.NullOr(S.String)),
155
- }),
156
- ).annotate({ identifier: "RevisionVariable" }) as any as S.Schema<RevisionVariable>;
157
-
158
83
  /** Variable values for this revision. Each variable must reference a variable definition on the function. */
159
84
  export type CreateFunctionRevisionRequestVariablesList = Array<RevisionVariable>;
160
- export const CreateFunctionRevisionRequestVariablesList = /*@__PURE__*/ S.Array(
161
- RevisionVariable,
162
- ) as any as S.Schema<CreateFunctionRevisionRequestVariablesList>;
163
-
164
85
  export interface CreateFunctionRevisionRequest {
165
86
  /** The STACKIT portal project UUID the resource is located in. */
166
87
  projectId: string;
@@ -195,53 +116,11 @@ export interface CreateFunctionRevisionRequest {
195
116
  /** The version number of the revision. */
196
117
  version?: number;
197
118
  }
198
- export const CreateFunctionRevisionRequest = /*@__PURE__*/ S.suspend(() =>
199
- S.Struct({
200
- projectId: S.String.pipe(T.Label()),
201
- functionId: S.String.pipe(T.Label()),
202
- created_at: S.optional(S.String),
203
- digest: S.optional(S.String),
204
- function_id: S.optional(S.String),
205
- id: S.optional(S.String),
206
- labels: S.optional(CreateFunctionRevisionRequestLabelsMap),
207
- limits: ResourceLimits,
208
- message: S.optional(S.String),
209
- name: S.optional(S.String),
210
- oci_pull_credential_id: S.optional(S.String),
211
- oci_reference: S.String,
212
- state: S.optional(CreateFunctionRevisionRequestState),
213
- state_error: S.optional(S.String),
214
- updated_at: S.optional(S.String),
215
- variables: S.optional(CreateFunctionRevisionRequestVariablesList),
216
- version: S.optional(S.Number),
217
- }).pipe(
218
- T.Http({
219
- method: "POST",
220
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
221
- code: 200,
222
- baseUrl: "https://functions.api.{region}stackit.cloud",
223
- }),
224
- ),
225
- ).annotate({
226
- identifier: "CreateFunctionRevisionRequest",
227
- }) as any as S.Schema<CreateFunctionRevisionRequest>;
228
-
229
119
  export type RevisionLabelsMap = { [key: string]: string | undefined };
230
- export const RevisionLabelsMap = /*@__PURE__*/ S.Record(
231
- S.String,
232
- S.String,
233
- ) as any as S.Schema<RevisionLabelsMap>;
234
-
235
120
  /** Status of this revision. */
236
121
  export type RevisionState = "CANCELLED" | "CREATING" | "ACTIVE" | "FAILED";
237
- export const RevisionState = S.String;
238
-
239
122
  /** Variable values for this revision. Each variable must reference a variable definition on the function. */
240
123
  export type RevisionVariablesList = Array<RevisionVariable>;
241
- export const RevisionVariablesList = /*@__PURE__*/ S.Array(
242
- RevisionVariable,
243
- ) as any as S.Schema<RevisionVariablesList>;
244
-
245
124
  /** The function revision */
246
125
  export interface Revision {
247
126
  /** Time the function was created. */
@@ -273,32 +152,7 @@ export interface Revision {
273
152
  /** The version number of the revision. */
274
153
  version?: number;
275
154
  }
276
- export const Revision = /*@__PURE__*/ S.suspend(() =>
277
- S.Struct({
278
- created_at: S.optional(S.String),
279
- digest: S.optional(S.String),
280
- function_id: S.optional(S.String),
281
- id: S.optional(S.String),
282
- labels: S.optional(RevisionLabelsMap),
283
- limits: ResourceLimits,
284
- message: S.optional(S.String),
285
- name: S.optional(S.String),
286
- oci_pull_credential_id: S.optional(S.String),
287
- oci_reference: S.String,
288
- state: S.optional(RevisionState),
289
- state_error: S.optional(S.String),
290
- updated_at: S.optional(S.String),
291
- variables: S.optional(RevisionVariablesList),
292
- version: S.optional(S.Number),
293
- }),
294
- ).annotate({ identifier: "Revision" }) as any as S.Schema<Revision>;
295
-
296
155
  export type CreatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
297
- export const CreatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(
298
- S.String,
299
- S.String,
300
- ) as any as S.Schema<CreatePullCredentialRequestLabelsMap>;
301
-
302
156
  export interface CreatePullCredentialRequest {
303
157
  /** The STACKIT portal project UUID the resource is located in. */
304
158
  projectId: string;
@@ -314,33 +168,7 @@ export interface CreatePullCredentialRequest {
314
168
  /** The username for the OCI registry pull-credentials. */
315
169
  username: string;
316
170
  }
317
- export const CreatePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
318
- S.Struct({
319
- projectId: S.String.pipe(T.Label()),
320
- address: S.String,
321
- id: S.optional(S.String),
322
- labels: S.optional(CreatePullCredentialRequestLabelsMap),
323
- name: S.optional(S.String),
324
- password: S.String.pipe(T.SensitiveValue({})),
325
- username: S.String,
326
- }).pipe(
327
- T.Http({
328
- method: "POST",
329
- uri: "/v1alpha/projects/{projectId}/pull-credentials",
330
- code: 200,
331
- baseUrl: "https://functions.api.{region}stackit.cloud",
332
- }),
333
- ),
334
- ).annotate({
335
- identifier: "CreatePullCredentialRequest",
336
- }) as any as S.Schema<CreatePullCredentialRequest>;
337
-
338
171
  export type PullCredentialLabelsMap = { [key: string]: string | undefined };
339
- export const PullCredentialLabelsMap = /*@__PURE__*/ S.Record(
340
- S.String,
341
- S.String,
342
- ) as any as S.Schema<PullCredentialLabelsMap>;
343
-
344
172
  export interface PullCredential {
345
173
  /** The OCI registry address. */
346
174
  address: string;
@@ -354,69 +182,20 @@ export interface PullCredential {
354
182
  /** The username for the OCI registry pull-credentials. */
355
183
  username: string;
356
184
  }
357
- export const PullCredential = /*@__PURE__*/ S.suspend(() =>
358
- S.Struct({
359
- address: S.String,
360
- id: S.optional(S.String),
361
- labels: S.optional(PullCredentialLabelsMap),
362
- name: S.optional(S.String),
363
- password: S.String.pipe(T.SensitiveValue({})),
364
- username: S.String,
365
- }),
366
- ).annotate({ identifier: "PullCredential" }) as any as S.Schema<PullCredential>;
367
-
368
185
  export interface DeleteFunctionRequest {
369
186
  /** The STACKIT portal project UUID the resource is located in. */
370
187
  projectId: string;
371
188
  /** The STACKIT Functions functionId */
372
189
  functionId: string;
373
190
  }
374
- export const DeleteFunctionRequest = /*@__PURE__*/ S.suspend(() =>
375
- S.Struct({
376
- projectId: S.String.pipe(T.Label()),
377
- functionId: S.String.pipe(T.Label()),
378
- }).pipe(
379
- T.Http({
380
- method: "DELETE",
381
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
382
- code: 200,
383
- baseUrl: "https://functions.api.{region}stackit.cloud",
384
- }),
385
- ),
386
- ).annotate({ identifier: "DeleteFunctionRequest" }) as any as S.Schema<DeleteFunctionRequest>;
387
-
388
191
  export interface DeleteFunctionResponse {}
389
- export const DeleteFunctionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
390
- identifier: "DeleteFunctionResponse",
391
- }) as any as S.Schema<DeleteFunctionResponse>;
392
-
393
192
  export interface DeletePullCredentialRequest {
394
193
  /** The STACKIT portal project UUID the resource is located in. */
395
194
  projectId: string;
396
195
  /** The identifier of the OCI registry pull credential configuration */
397
196
  pullCredentialId: string;
398
197
  }
399
- export const DeletePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
400
- S.Struct({
401
- projectId: S.String.pipe(T.Label()),
402
- pullCredentialId: S.String.pipe(T.Label()),
403
- }).pipe(
404
- T.Http({
405
- method: "DELETE",
406
- uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
407
- code: 200,
408
- baseUrl: "https://functions.api.{region}stackit.cloud",
409
- }),
410
- ),
411
- ).annotate({
412
- identifier: "DeletePullCredentialRequest",
413
- }) as any as S.Schema<DeletePullCredentialRequest>;
414
-
415
198
  export interface DeletePullCredentialResponse {}
416
- export const DeletePullCredentialResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
417
- identifier: "DeletePullCredentialResponse",
418
- }) as any as S.Schema<DeletePullCredentialResponse>;
419
-
420
199
  export interface DeleteRevisionRequest {
421
200
  /** The STACKIT portal project UUID the resource is located in. */
422
201
  projectId: string;
@@ -425,66 +204,19 @@ export interface DeleteRevisionRequest {
425
204
  /** The identifier of the revision */
426
205
  revisionId: string;
427
206
  }
428
- export const DeleteRevisionRequest = /*@__PURE__*/ S.suspend(() =>
429
- S.Struct({
430
- projectId: S.String.pipe(T.Label()),
431
- functionId: S.String.pipe(T.Label()),
432
- revisionId: S.String.pipe(T.Label()),
433
- }).pipe(
434
- T.Http({
435
- method: "DELETE",
436
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
437
- code: 200,
438
- baseUrl: "https://functions.api.{region}stackit.cloud",
439
- }),
440
- ),
441
- ).annotate({ identifier: "DeleteRevisionRequest" }) as any as S.Schema<DeleteRevisionRequest>;
442
-
443
207
  export interface DeleteRevisionResponse {}
444
- export const DeleteRevisionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
445
- identifier: "DeleteRevisionResponse",
446
- }) as any as S.Schema<DeleteRevisionResponse>;
447
-
448
208
  export interface GetFunctionRequest {
449
209
  /** The STACKIT portal project UUID the resource is located in. */
450
210
  projectId: string;
451
211
  /** The STACKIT Functions functionId */
452
212
  functionId: string;
453
213
  }
454
- export const GetFunctionRequest = /*@__PURE__*/ S.suspend(() =>
455
- S.Struct({
456
- projectId: S.String.pipe(T.Label()),
457
- functionId: S.String.pipe(T.Label()),
458
- }).pipe(
459
- T.Http({
460
- method: "GET",
461
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
462
- code: 200,
463
- baseUrl: "https://functions.api.{region}stackit.cloud",
464
- }),
465
- ),
466
- ).annotate({ identifier: "GetFunctionRequest" }) as any as S.Schema<GetFunctionRequest>;
467
-
468
214
  export interface GetPullCredentialRequest {
469
215
  /** The STACKIT portal project UUID the resource is located in. */
470
216
  projectId: string;
471
217
  /** The identifier of the OCI registry pull credential configuration */
472
218
  pullCredentialId: string;
473
219
  }
474
- export const GetPullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
475
- S.Struct({
476
- projectId: S.String.pipe(T.Label()),
477
- pullCredentialId: S.String.pipe(T.Label()),
478
- }).pipe(
479
- T.Http({
480
- method: "GET",
481
- uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
482
- code: 200,
483
- baseUrl: "https://functions.api.{region}stackit.cloud",
484
- }),
485
- ),
486
- ).annotate({ identifier: "GetPullCredentialRequest" }) as any as S.Schema<GetPullCredentialRequest>;
487
-
488
220
  export interface GetRevisionRequest {
489
221
  /** The STACKIT portal project UUID the resource is located in. */
490
222
  projectId: string;
@@ -493,121 +225,38 @@ export interface GetRevisionRequest {
493
225
  /** The identifier of the revision */
494
226
  revisionId: string;
495
227
  }
496
- export const GetRevisionRequest = /*@__PURE__*/ S.suspend(() =>
497
- S.Struct({
498
- projectId: S.String.pipe(T.Label()),
499
- functionId: S.String.pipe(T.Label()),
500
- revisionId: S.String.pipe(T.Label()),
501
- }).pipe(
502
- T.Http({
503
- method: "GET",
504
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
505
- code: 200,
506
- baseUrl: "https://functions.api.{region}stackit.cloud",
507
- }),
508
- ),
509
- ).annotate({ identifier: "GetRevisionRequest" }) as any as S.Schema<GetRevisionRequest>;
510
-
511
228
  export interface ListFunctionsRequest {
512
229
  /** The STACKIT portal project UUID the resource is located in. */
513
230
  projectId: string;
514
231
  }
515
- export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() =>
516
- S.Struct({
517
- projectId: S.String.pipe(T.Label()),
518
- }).pipe(
519
- T.Http({
520
- method: "GET",
521
- uri: "/v1alpha/projects/{projectId}/functions",
522
- code: 200,
523
- baseUrl: "https://functions.api.{region}stackit.cloud",
524
- }),
525
- ),
526
- ).annotate({ identifier: "ListFunctionsRequest" }) as any as S.Schema<ListFunctionsRequest>;
527
-
528
232
  /** List of functions. */
529
233
  export type ListFunctionsFunctionsList = Array<Function>;
530
- export const ListFunctionsFunctionsList = /*@__PURE__*/ S.Array(
531
- Function,
532
- ) as any as S.Schema<ListFunctionsFunctionsList>;
533
-
534
234
  export interface ListFunctions {
535
235
  /** List of functions. */
536
236
  functions?: ListFunctionsFunctionsList;
537
237
  /** Token for the next page of results. */
538
238
  next_page_token?: string;
539
239
  }
540
- export const ListFunctions = /*@__PURE__*/ S.suspend(() =>
541
- S.Struct({
542
- functions: S.optional(ListFunctionsFunctionsList),
543
- next_page_token: S.optional(S.String),
544
- }),
545
- ).annotate({ identifier: "ListFunctions" }) as any as S.Schema<ListFunctions>;
546
-
547
240
  export interface ListPullCredentialsRequest {
548
241
  /** The STACKIT portal project UUID the resource is located in. */
549
242
  projectId: string;
550
243
  }
551
- export const ListPullCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
552
- S.Struct({
553
- projectId: S.String.pipe(T.Label()),
554
- }).pipe(
555
- T.Http({
556
- method: "GET",
557
- uri: "/v1alpha/projects/{projectId}/pull-credentials",
558
- code: 200,
559
- baseUrl: "https://functions.api.{region}stackit.cloud",
560
- }),
561
- ),
562
- ).annotate({
563
- identifier: "ListPullCredentialsRequest",
564
- }) as any as S.Schema<ListPullCredentialsRequest>;
565
-
566
244
  /** List of oci registries pull credentials associated with the project. */
567
245
  export type ListPullCredentialsPullCredentialsList = Array<PullCredential>;
568
- export const ListPullCredentialsPullCredentialsList = /*@__PURE__*/ S.Array(
569
- PullCredential,
570
- ) as any as S.Schema<ListPullCredentialsPullCredentialsList>;
571
-
572
246
  export interface ListPullCredentials {
573
247
  /** Token for the next page of results. */
574
248
  next_page_token?: string;
575
249
  /** List of oci registries pull credentials associated with the project. */
576
250
  pull_credentials?: ListPullCredentialsPullCredentialsList;
577
251
  }
578
- export const ListPullCredentials = /*@__PURE__*/ S.suspend(() =>
579
- S.Struct({
580
- next_page_token: S.optional(S.String),
581
- pull_credentials: S.optional(ListPullCredentialsPullCredentialsList),
582
- }),
583
- ).annotate({ identifier: "ListPullCredentials" }) as any as S.Schema<ListPullCredentials>;
584
-
585
252
  export interface ListRevisionsRequest {
586
253
  /** The STACKIT portal project UUID the resource is located in. */
587
254
  projectId: string;
588
255
  /** The STACKIT Functions functionId */
589
256
  functionId: string;
590
257
  }
591
- export const ListRevisionsRequest = /*@__PURE__*/ S.suspend(() =>
592
- S.Struct({
593
- projectId: S.String.pipe(T.Label()),
594
- functionId: S.String.pipe(T.Label()),
595
- }).pipe(
596
- T.Http({
597
- method: "GET",
598
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
599
- code: 200,
600
- baseUrl: "https://functions.api.{region}stackit.cloud",
601
- }),
602
- ),
603
- ).annotate({ identifier: "ListRevisionsRequest" }) as any as S.Schema<ListRevisionsRequest>;
604
-
605
258
  /** List of revisions. */
606
259
  export type ListRevisionsRevisionListList = Array<Revision>;
607
- export const ListRevisionsRevisionListList = /*@__PURE__*/ S.Array(
608
- Revision,
609
- ) as any as S.Schema<ListRevisionsRevisionListList>;
610
-
611
260
  export interface ListRevisions {
612
261
  /** Maximum number of items */
613
262
  maxItems?: number;
@@ -616,20 +265,7 @@ export interface ListRevisions {
616
265
  /** List of revisions. */
617
266
  revisionList?: ListRevisionsRevisionListList;
618
267
  }
619
- export const ListRevisions = /*@__PURE__*/ S.suspend(() =>
620
- S.Struct({
621
- maxItems: S.optional(S.Number),
622
- next_page_token: S.optional(S.String),
623
- revisionList: S.optional(ListRevisionsRevisionListList),
624
- }),
625
- ).annotate({ identifier: "ListRevisions" }) as any as S.Schema<ListRevisions>;
626
-
627
268
  export type UpdateFunctionRequestLabelsMap = { [key: string]: string | undefined };
628
- export const UpdateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(
629
- S.String,
630
- S.String,
631
- ) as any as S.Schema<UpdateFunctionRequestLabelsMap>;
632
-
633
269
  export interface UpdateFunctionRequest {
634
270
  /** The STACKIT portal project UUID the resource is located in. */
635
271
  projectId: string;
@@ -639,28 +275,7 @@ export interface UpdateFunctionRequest {
639
275
  /** User-defined name of the function. */
640
276
  name?: string;
641
277
  }
642
- export const UpdateFunctionRequest = /*@__PURE__*/ S.suspend(() =>
643
- S.Struct({
644
- projectId: S.String.pipe(T.Label()),
645
- functionId: S.String.pipe(T.Label()),
646
- labels: S.optional(UpdateFunctionRequestLabelsMap),
647
- name: S.optional(S.String),
648
- }).pipe(
649
- T.Http({
650
- method: "PATCH",
651
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
652
- code: 200,
653
- baseUrl: "https://functions.api.{region}stackit.cloud",
654
- }),
655
- ),
656
- ).annotate({ identifier: "UpdateFunctionRequest" }) as any as S.Schema<UpdateFunctionRequest>;
657
-
658
278
  export type UpdatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
659
- export const UpdatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(
660
- S.String,
661
- S.String,
662
- ) as any as S.Schema<UpdatePullCredentialRequestLabelsMap>;
663
-
664
279
  export interface UpdatePullCredentialRequest {
665
280
  /** The STACKIT portal project UUID the resource is located in. */
666
281
  projectId: string;
@@ -676,33 +291,7 @@ export interface UpdatePullCredentialRequest {
676
291
  /** The username for the OCI registry pull-credentials. */
677
292
  username?: string;
678
293
  }
679
- export const UpdatePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
680
- S.Struct({
681
- projectId: S.String.pipe(T.Label()),
682
- pullCredentialId: S.String.pipe(T.Label()),
683
- address: S.optional(S.String),
684
- labels: S.optional(UpdatePullCredentialRequestLabelsMap),
685
- name: S.optional(S.String),
686
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
687
- username: S.optional(S.String),
688
- }).pipe(
689
- T.Http({
690
- method: "PATCH",
691
- uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
692
- code: 200,
693
- baseUrl: "https://functions.api.{region}stackit.cloud",
694
- }),
695
- ),
696
- ).annotate({
697
- identifier: "UpdatePullCredentialRequest",
698
- }) as any as S.Schema<UpdatePullCredentialRequest>;
699
-
700
294
  export type UpdateRevisionRequestLabelsMap = { [key: string]: string | undefined };
701
- export const UpdateRevisionRequestLabelsMap = /*@__PURE__*/ S.Record(
702
- S.String,
703
- S.String,
704
- ) as any as S.Schema<UpdateRevisionRequestLabelsMap>;
705
-
706
295
  export interface UpdateRevisionRequest {
707
296
  /** The STACKIT portal project UUID the resource is located in. */
708
297
  projectId: string;
@@ -714,23 +303,6 @@ export interface UpdateRevisionRequest {
714
303
  /** The name of the the revision. Must be unique within the function. */
715
304
  name?: string;
716
305
  }
717
- export const UpdateRevisionRequest = /*@__PURE__*/ S.suspend(() =>
718
- S.Struct({
719
- projectId: S.String.pipe(T.Label()),
720
- functionId: S.String.pipe(T.Label()),
721
- revisionId: S.String.pipe(T.Label()),
722
- labels: S.optional(UpdateRevisionRequestLabelsMap),
723
- name: S.optional(S.String),
724
- }).pipe(
725
- T.Http({
726
- method: "PATCH",
727
- uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
728
- code: 200,
729
- baseUrl: "https://functions.api.{region}stackit.cloud",
730
- }),
731
- ),
732
- ).annotate({ identifier: "UpdateRevisionRequest" }) as any as S.Schema<UpdateRevisionRequest>;
733
-
734
306
  export type CreateFunctionError = StackitOpError;
735
307
  /** Creates a new function. */
736
308
  export const createFunction: API.OperationMethod<
@@ -739,8 +311,8 @@ export const createFunction: API.OperationMethod<
739
311
  CreateFunctionError,
740
312
  StackitOpContext
741
313
  > = /*@__PURE__*/ API.make(() => ({
742
- input: CreateFunctionRequest,
743
- output: Function,
314
+ input: __S(0, __c0, 0) as any as S.Schema<CreateFunctionRequest>,
315
+ output: __S(9, __c2, 1) as any as S.Schema<Function>,
744
316
  errors: [UnknownStackitError],
745
317
  protocol: StackitProtocol,
746
318
  retry: Retry.Retry,
@@ -754,8 +326,8 @@ export const createFunctionRevision: API.OperationMethod<
754
326
  CreateFunctionRevisionError,
755
327
  StackitOpContext
756
328
  > = /*@__PURE__*/ API.make(() => ({
757
- input: CreateFunctionRevisionRequest,
758
- output: Revision,
329
+ input: __S(12, __c3, 0) as any as S.Schema<CreateFunctionRevisionRequest>,
330
+ output: __S(19, __c4, 3) as any as S.Schema<Revision>,
759
331
  errors: [UnknownStackitError],
760
332
  protocol: StackitProtocol,
761
333
  retry: Retry.Retry,
@@ -769,8 +341,8 @@ export const createPullCredential: API.OperationMethod<
769
341
  CreatePullCredentialError,
770
342
  StackitOpContext
771
343
  > = /*@__PURE__*/ API.make(() => ({
772
- input: CreatePullCredentialRequest,
773
- output: PullCredential,
344
+ input: __S(40, __c10, 0) as any as S.Schema<CreatePullCredentialRequest>,
345
+ output: __S(44, __c11, 0) as any as S.Schema<PullCredential>,
774
346
  errors: [UnknownStackitError],
775
347
  protocol: StackitProtocol,
776
348
  retry: Retry.Retry,
@@ -784,8 +356,8 @@ export const deleteFunction: API.OperationMethod<
784
356
  DeleteFunctionError,
785
357
  StackitOpContext
786
358
  > = /*@__PURE__*/ API.make(() => ({
787
- input: DeleteFunctionRequest,
788
- output: DeleteFunctionResponse,
359
+ input: __S(48, __c12, 0) as any as S.Schema<DeleteFunctionRequest>,
360
+ output: __S(52, __c13, 0) as any as S.Schema<DeleteFunctionResponse>,
789
361
  errors: [UnknownStackitError],
790
362
  protocol: StackitProtocol,
791
363
  retry: Retry.Retry,
@@ -799,8 +371,8 @@ export const deletePullCredential: API.OperationMethod<
799
371
  DeletePullCredentialError,
800
372
  StackitOpContext
801
373
  > = /*@__PURE__*/ API.make(() => ({
802
- input: DeletePullCredentialRequest,
803
- output: DeletePullCredentialResponse,
374
+ input: __S(56, __c14, 0) as any as S.Schema<DeletePullCredentialRequest>,
375
+ output: __S(52, __c13, 0) as any as S.Schema<DeletePullCredentialResponse>,
804
376
  errors: [UnknownStackitError],
805
377
  protocol: StackitProtocol,
806
378
  retry: Retry.Retry,
@@ -814,8 +386,8 @@ export const deleteRevision: API.OperationMethod<
814
386
  DeleteRevisionError,
815
387
  StackitOpContext
816
388
  > = /*@__PURE__*/ API.make(() => ({
817
- input: DeleteRevisionRequest,
818
- output: DeleteRevisionResponse,
389
+ input: __S(60, __c15, 0) as any as S.Schema<DeleteRevisionRequest>,
390
+ output: __S(52, __c13, 0) as any as S.Schema<DeleteRevisionResponse>,
819
391
  errors: [UnknownStackitError],
820
392
  protocol: StackitProtocol,
821
393
  retry: Retry.Retry,
@@ -829,8 +401,8 @@ export const getFunction: API.OperationMethod<
829
401
  GetFunctionError,
830
402
  StackitOpContext
831
403
  > = /*@__PURE__*/ API.make(() => ({
832
- input: GetFunctionRequest,
833
- output: Function,
404
+ input: __S(64, __c16, 0) as any as S.Schema<GetFunctionRequest>,
405
+ output: __S(9, __c2, 1) as any as S.Schema<Function>,
834
406
  errors: [UnknownStackitError],
835
407
  protocol: StackitProtocol,
836
408
  retry: Retry.Retry,
@@ -844,8 +416,8 @@ export const getPullCredential: API.OperationMethod<
844
416
  GetPullCredentialError,
845
417
  StackitOpContext
846
418
  > = /*@__PURE__*/ API.make(() => ({
847
- input: GetPullCredentialRequest,
848
- output: PullCredential,
419
+ input: __S(68, __c17, 0) as any as S.Schema<GetPullCredentialRequest>,
420
+ output: __S(44, __c11, 0) as any as S.Schema<PullCredential>,
849
421
  errors: [UnknownStackitError],
850
422
  protocol: StackitProtocol,
851
423
  retry: Retry.Retry,
@@ -859,8 +431,8 @@ export const getRevision: API.OperationMethod<
859
431
  GetRevisionError,
860
432
  StackitOpContext
861
433
  > = /*@__PURE__*/ API.make(() => ({
862
- input: GetRevisionRequest,
863
- output: Revision,
434
+ input: __S(72, __c18, 0) as any as S.Schema<GetRevisionRequest>,
435
+ output: __S(19, __c4, 3) as any as S.Schema<Revision>,
864
436
  errors: [UnknownStackitError],
865
437
  protocol: StackitProtocol,
866
438
  retry: Retry.Retry,
@@ -874,8 +446,8 @@ export const listFunctions2: API.OperationMethod<
874
446
  ListFunctions2Error,
875
447
  StackitOpContext
876
448
  > = /*@__PURE__*/ API.make(() => ({
877
- input: ListFunctionsRequest,
878
- output: ListFunctions,
449
+ input: __S(76, __c19, 0) as any as S.Schema<ListFunctionsRequest>,
450
+ output: __S(78, __c19, 2) as any as S.Schema<ListFunctions>,
879
451
  errors: [UnknownStackitError],
880
452
  protocol: StackitProtocol,
881
453
  retry: Retry.Retry,
@@ -889,8 +461,8 @@ export const listPullCredentials2: API.OperationMethod<
889
461
  ListPullCredentials2Error,
890
462
  StackitOpContext
891
463
  > = /*@__PURE__*/ API.make(() => ({
892
- input: ListPullCredentialsRequest,
893
- output: ListPullCredentials,
464
+ input: __S(20, __c5, 0) as any as S.Schema<ListPullCredentialsRequest>,
465
+ output: __S(22, __c5, 2) as any as S.Schema<ListPullCredentials>,
894
466
  errors: [UnknownStackitError],
895
467
  protocol: StackitProtocol,
896
468
  retry: Retry.Retry,
@@ -904,8 +476,8 @@ export const listRevisions2: API.OperationMethod<
904
476
  ListRevisions2Error,
905
477
  StackitOpContext
906
478
  > = /*@__PURE__*/ API.make(() => ({
907
- input: ListRevisionsRequest,
908
- output: ListRevisions,
479
+ input: __S(24, __c6, 0) as any as S.Schema<ListRevisionsRequest>,
480
+ output: __S(26, __c6, 2) as any as S.Schema<ListRevisions>,
909
481
  errors: [UnknownStackitError],
910
482
  protocol: StackitProtocol,
911
483
  retry: Retry.Retry,
@@ -919,8 +491,8 @@ export const updateFunction: API.OperationMethod<
919
491
  UpdateFunctionError,
920
492
  StackitOpContext
921
493
  > = /*@__PURE__*/ API.make(() => ({
922
- input: UpdateFunctionRequest,
923
- output: Function,
494
+ input: __S(28, __c7, 0) as any as S.Schema<UpdateFunctionRequest>,
495
+ output: __S(9, __c2, 1) as any as S.Schema<Function>,
924
496
  errors: [UnknownStackitError],
925
497
  protocol: StackitProtocol,
926
498
  retry: Retry.Retry,
@@ -934,8 +506,8 @@ export const updatePullCredential: API.OperationMethod<
934
506
  UpdatePullCredentialError,
935
507
  StackitOpContext
936
508
  > = /*@__PURE__*/ API.make(() => ({
937
- input: UpdatePullCredentialRequest,
938
- output: PullCredential,
509
+ input: __S(32, __c8, 0) as any as S.Schema<UpdatePullCredentialRequest>,
510
+ output: __S(44, __c11, 0) as any as S.Schema<PullCredential>,
939
511
  errors: [UnknownStackitError],
940
512
  protocol: StackitProtocol,
941
513
  retry: Retry.Retry,
@@ -949,9 +521,439 @@ export const updateRevision: API.OperationMethod<
949
521
  UpdateRevisionError,
950
522
  StackitOpContext
951
523
  > = /*@__PURE__*/ API.make(() => ({
952
- input: UpdateRevisionRequest,
953
- output: Revision,
524
+ input: __S(36, __c9, 0) as any as S.Schema<UpdateRevisionRequest>,
525
+ output: __S(19, __c4, 3) as any as S.Schema<Revision>,
954
526
  errors: [UnknownStackitError],
955
527
  protocol: StackitProtocol,
956
528
  retry: Retry.Retry,
957
529
  }));
530
+
531
+ // Schema builders: each runs one schema initializer, on that schema's first use.
532
+ function __c0(j: number): any {
533
+ switch (j) {
534
+ case 0:
535
+ return S.suspend(() =>
536
+ S.Struct({
537
+ projectId: S.String.pipe(T.Label()),
538
+ created_at: S.optional(S.String),
539
+ current_revision: S.optional(S.String),
540
+ id: S.optional(S.String),
541
+ labels: S.optional(__S(4, __c1, 0)),
542
+ name: S.String,
543
+ state: S.optional(S.String),
544
+ state_error: S.optional(S.String),
545
+ updated_at: S.optional(S.String),
546
+ url: S.optional(__S(8, __c2, 0)),
547
+ }).pipe(
548
+ T.Http({
549
+ method: "POST",
550
+ uri: "/v1alpha/projects/{projectId}/functions",
551
+ code: 200,
552
+ baseUrl: "https://functions.api.{region}stackit.cloud",
553
+ }),
554
+ ),
555
+ ).annotate({ identifier: "CreateFunctionRequest" });
556
+ }
557
+ }
558
+ function __c1(j: number): any {
559
+ switch (j) {
560
+ case 0:
561
+ return S.Record(S.String, S.String);
562
+ }
563
+ }
564
+ function __c2(j: number): any {
565
+ switch (j) {
566
+ case 0:
567
+ return S.Array(S.String);
568
+ case 1:
569
+ return S.suspend(() =>
570
+ S.Struct({
571
+ created_at: S.optional(S.String),
572
+ current_revision: S.optional(S.String),
573
+ id: S.optional(S.String),
574
+ labels: S.optional(__S(4, __c1, 0)),
575
+ name: S.String,
576
+ state: S.optional(S.String),
577
+ state_error: S.optional(S.String),
578
+ updated_at: S.optional(S.String),
579
+ url: S.optional(__S(8, __c2, 0)),
580
+ }),
581
+ ).annotate({ identifier: "Function" });
582
+ }
583
+ }
584
+ function __c3(j: number): any {
585
+ switch (j) {
586
+ case 0:
587
+ return S.suspend(() =>
588
+ S.Struct({
589
+ projectId: S.String.pipe(T.Label()),
590
+ functionId: S.String.pipe(T.Label()),
591
+ created_at: S.optional(S.String),
592
+ digest: S.optional(S.String),
593
+ function_id: S.optional(S.String),
594
+ id: S.optional(S.String),
595
+ labels: S.optional(__S(4, __c1, 0)),
596
+ limits: __S(16, __c4, 0),
597
+ message: S.optional(S.String),
598
+ name: S.optional(S.String),
599
+ oci_pull_credential_id: S.optional(S.String),
600
+ oci_reference: S.String,
601
+ state: S.optional(S.String),
602
+ state_error: S.optional(S.String),
603
+ updated_at: S.optional(S.String),
604
+ variables: S.optional(__S(18, __c4, 2)),
605
+ version: S.optional(S.Number),
606
+ }).pipe(
607
+ T.Http({
608
+ method: "POST",
609
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
610
+ code: 200,
611
+ baseUrl: "https://functions.api.{region}stackit.cloud",
612
+ }),
613
+ ),
614
+ ).annotate({ identifier: "CreateFunctionRevisionRequest" });
615
+ }
616
+ }
617
+ function __c4(j: number): any {
618
+ switch (j) {
619
+ case 0:
620
+ return S.suspend(() =>
621
+ S.Struct({
622
+ concurrency: S.Number,
623
+ plan: S.String,
624
+ }),
625
+ ).annotate({ identifier: "ResourceLimits" });
626
+ case 1:
627
+ return S.suspend(() =>
628
+ S.Struct({
629
+ name: S.String,
630
+ value: S.optional(S.NullOr(S.String)),
631
+ vault_reference: S.optional(S.NullOr(S.String)),
632
+ }),
633
+ ).annotate({ identifier: "RevisionVariable" });
634
+ case 2:
635
+ return S.Array(__S(17, __c4, 1));
636
+ case 3:
637
+ return S.suspend(() =>
638
+ S.Struct({
639
+ created_at: S.optional(S.String),
640
+ digest: S.optional(S.String),
641
+ function_id: S.optional(S.String),
642
+ id: S.optional(S.String),
643
+ labels: S.optional(__S(4, __c1, 0)),
644
+ limits: __S(16, __c4, 0),
645
+ message: S.optional(S.String),
646
+ name: S.optional(S.String),
647
+ oci_pull_credential_id: S.optional(S.String),
648
+ oci_reference: S.String,
649
+ state: S.optional(S.String),
650
+ state_error: S.optional(S.String),
651
+ updated_at: S.optional(S.String),
652
+ variables: S.optional(__S(18, __c4, 2)),
653
+ version: S.optional(S.Number),
654
+ }),
655
+ ).annotate({ identifier: "Revision" });
656
+ }
657
+ }
658
+ function __c5(j: number): any {
659
+ switch (j) {
660
+ case 0:
661
+ return S.suspend(() =>
662
+ S.Struct({
663
+ projectId: S.String.pipe(T.Label()),
664
+ }).pipe(
665
+ T.Http({
666
+ method: "GET",
667
+ uri: "/v1alpha/projects/{projectId}/pull-credentials",
668
+ code: 200,
669
+ baseUrl: "https://functions.api.{region}stackit.cloud",
670
+ }),
671
+ ),
672
+ ).annotate({ identifier: "ListPullCredentialsRequest" });
673
+ case 1:
674
+ return S.Array(__S(44, __c11, 0));
675
+ case 2:
676
+ return S.suspend(() =>
677
+ S.Struct({
678
+ next_page_token: S.optional(S.String),
679
+ pull_credentials: S.optional(__S(21, __c5, 1)),
680
+ }),
681
+ ).annotate({ identifier: "ListPullCredentials" });
682
+ }
683
+ }
684
+ function __c6(j: number): any {
685
+ switch (j) {
686
+ case 0:
687
+ return S.suspend(() =>
688
+ S.Struct({
689
+ projectId: S.String.pipe(T.Label()),
690
+ functionId: S.String.pipe(T.Label()),
691
+ }).pipe(
692
+ T.Http({
693
+ method: "GET",
694
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
695
+ code: 200,
696
+ baseUrl: "https://functions.api.{region}stackit.cloud",
697
+ }),
698
+ ),
699
+ ).annotate({ identifier: "ListRevisionsRequest" });
700
+ case 1:
701
+ return S.Array(__S(19, __c4, 3));
702
+ case 2:
703
+ return S.suspend(() =>
704
+ S.Struct({
705
+ maxItems: S.optional(S.Number),
706
+ next_page_token: S.optional(S.String),
707
+ revisionList: S.optional(__S(25, __c6, 1)),
708
+ }),
709
+ ).annotate({ identifier: "ListRevisions" });
710
+ }
711
+ }
712
+ function __c7(j: number): any {
713
+ switch (j) {
714
+ case 0:
715
+ return S.suspend(() =>
716
+ S.Struct({
717
+ projectId: S.String.pipe(T.Label()),
718
+ functionId: S.String.pipe(T.Label()),
719
+ labels: S.optional(__S(4, __c1, 0)),
720
+ name: S.optional(S.String),
721
+ }).pipe(
722
+ T.Http({
723
+ method: "PATCH",
724
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
725
+ code: 200,
726
+ baseUrl: "https://functions.api.{region}stackit.cloud",
727
+ }),
728
+ ),
729
+ ).annotate({ identifier: "UpdateFunctionRequest" });
730
+ }
731
+ }
732
+ function __c8(j: number): any {
733
+ switch (j) {
734
+ case 0:
735
+ return S.suspend(() =>
736
+ S.Struct({
737
+ projectId: S.String.pipe(T.Label()),
738
+ pullCredentialId: S.String.pipe(T.Label()),
739
+ address: S.optional(S.String),
740
+ labels: S.optional(__S(4, __c1, 0)),
741
+ name: S.optional(S.String),
742
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
743
+ username: S.optional(S.String),
744
+ }).pipe(
745
+ T.Http({
746
+ method: "PATCH",
747
+ uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
748
+ code: 200,
749
+ baseUrl: "https://functions.api.{region}stackit.cloud",
750
+ }),
751
+ ),
752
+ ).annotate({ identifier: "UpdatePullCredentialRequest" });
753
+ }
754
+ }
755
+ function __c9(j: number): any {
756
+ switch (j) {
757
+ case 0:
758
+ return S.suspend(() =>
759
+ S.Struct({
760
+ projectId: S.String.pipe(T.Label()),
761
+ functionId: S.String.pipe(T.Label()),
762
+ revisionId: S.String.pipe(T.Label()),
763
+ labels: S.optional(__S(4, __c1, 0)),
764
+ name: S.optional(S.String),
765
+ }).pipe(
766
+ T.Http({
767
+ method: "PATCH",
768
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
769
+ code: 200,
770
+ baseUrl: "https://functions.api.{region}stackit.cloud",
771
+ }),
772
+ ),
773
+ ).annotate({ identifier: "UpdateRevisionRequest" });
774
+ }
775
+ }
776
+ function __c10(j: number): any {
777
+ switch (j) {
778
+ case 0:
779
+ return S.suspend(() =>
780
+ S.Struct({
781
+ projectId: S.String.pipe(T.Label()),
782
+ address: S.String,
783
+ id: S.optional(S.String),
784
+ labels: S.optional(__S(4, __c1, 0)),
785
+ name: S.optional(S.String),
786
+ password: S.String.pipe(T.SensitiveValue({})),
787
+ username: S.String,
788
+ }).pipe(
789
+ T.Http({
790
+ method: "POST",
791
+ uri: "/v1alpha/projects/{projectId}/pull-credentials",
792
+ code: 200,
793
+ baseUrl: "https://functions.api.{region}stackit.cloud",
794
+ }),
795
+ ),
796
+ ).annotate({ identifier: "CreatePullCredentialRequest" });
797
+ }
798
+ }
799
+ function __c11(j: number): any {
800
+ switch (j) {
801
+ case 0:
802
+ return S.suspend(() =>
803
+ S.Struct({
804
+ address: S.String,
805
+ id: S.optional(S.String),
806
+ labels: S.optional(__S(4, __c1, 0)),
807
+ name: S.optional(S.String),
808
+ password: S.String.pipe(T.SensitiveValue({})),
809
+ username: S.String,
810
+ }),
811
+ ).annotate({ identifier: "PullCredential" });
812
+ }
813
+ }
814
+ function __c12(j: number): any {
815
+ switch (j) {
816
+ case 0:
817
+ return S.suspend(() =>
818
+ S.Struct({
819
+ projectId: S.String.pipe(T.Label()),
820
+ functionId: S.String.pipe(T.Label()),
821
+ }).pipe(
822
+ T.Http({
823
+ method: "DELETE",
824
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
825
+ code: 200,
826
+ baseUrl: "https://functions.api.{region}stackit.cloud",
827
+ }),
828
+ ),
829
+ ).annotate({ identifier: "DeleteFunctionRequest" });
830
+ }
831
+ }
832
+ function __c13(j: number): any {
833
+ switch (j) {
834
+ case 0:
835
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteFunctionResponse" });
836
+ }
837
+ }
838
+ function __c14(j: number): any {
839
+ switch (j) {
840
+ case 0:
841
+ return S.suspend(() =>
842
+ S.Struct({
843
+ projectId: S.String.pipe(T.Label()),
844
+ pullCredentialId: S.String.pipe(T.Label()),
845
+ }).pipe(
846
+ T.Http({
847
+ method: "DELETE",
848
+ uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
849
+ code: 200,
850
+ baseUrl: "https://functions.api.{region}stackit.cloud",
851
+ }),
852
+ ),
853
+ ).annotate({ identifier: "DeletePullCredentialRequest" });
854
+ }
855
+ }
856
+ function __c15(j: number): any {
857
+ switch (j) {
858
+ case 0:
859
+ return S.suspend(() =>
860
+ S.Struct({
861
+ projectId: S.String.pipe(T.Label()),
862
+ functionId: S.String.pipe(T.Label()),
863
+ revisionId: S.String.pipe(T.Label()),
864
+ }).pipe(
865
+ T.Http({
866
+ method: "DELETE",
867
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
868
+ code: 200,
869
+ baseUrl: "https://functions.api.{region}stackit.cloud",
870
+ }),
871
+ ),
872
+ ).annotate({ identifier: "DeleteRevisionRequest" });
873
+ }
874
+ }
875
+ function __c16(j: number): any {
876
+ switch (j) {
877
+ case 0:
878
+ return S.suspend(() =>
879
+ S.Struct({
880
+ projectId: S.String.pipe(T.Label()),
881
+ functionId: S.String.pipe(T.Label()),
882
+ }).pipe(
883
+ T.Http({
884
+ method: "GET",
885
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
886
+ code: 200,
887
+ baseUrl: "https://functions.api.{region}stackit.cloud",
888
+ }),
889
+ ),
890
+ ).annotate({ identifier: "GetFunctionRequest" });
891
+ }
892
+ }
893
+ function __c17(j: number): any {
894
+ switch (j) {
895
+ case 0:
896
+ return S.suspend(() =>
897
+ S.Struct({
898
+ projectId: S.String.pipe(T.Label()),
899
+ pullCredentialId: S.String.pipe(T.Label()),
900
+ }).pipe(
901
+ T.Http({
902
+ method: "GET",
903
+ uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
904
+ code: 200,
905
+ baseUrl: "https://functions.api.{region}stackit.cloud",
906
+ }),
907
+ ),
908
+ ).annotate({ identifier: "GetPullCredentialRequest" });
909
+ }
910
+ }
911
+ function __c18(j: number): any {
912
+ switch (j) {
913
+ case 0:
914
+ return S.suspend(() =>
915
+ S.Struct({
916
+ projectId: S.String.pipe(T.Label()),
917
+ functionId: S.String.pipe(T.Label()),
918
+ revisionId: S.String.pipe(T.Label()),
919
+ }).pipe(
920
+ T.Http({
921
+ method: "GET",
922
+ uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
923
+ code: 200,
924
+ baseUrl: "https://functions.api.{region}stackit.cloud",
925
+ }),
926
+ ),
927
+ ).annotate({ identifier: "GetRevisionRequest" });
928
+ }
929
+ }
930
+ function __c19(j: number): any {
931
+ switch (j) {
932
+ case 0:
933
+ return S.suspend(() =>
934
+ S.Struct({
935
+ projectId: S.String.pipe(T.Label()),
936
+ }).pipe(
937
+ T.Http({
938
+ method: "GET",
939
+ uri: "/v1alpha/projects/{projectId}/functions",
940
+ code: 200,
941
+ baseUrl: "https://functions.api.{region}stackit.cloud",
942
+ }),
943
+ ),
944
+ ).annotate({ identifier: "ListFunctionsRequest" });
945
+ case 1:
946
+ return S.Array(__S(9, __c2, 1));
947
+ case 2:
948
+ return S.suspend(() =>
949
+ S.Struct({
950
+ functions: S.optional(__S(77, __c19, 1)),
951
+ next_page_token: S.optional(S.String),
952
+ }),
953
+ ).annotate({ identifier: "ListFunctions" });
954
+ }
955
+ }
956
+ // Schema table: entry i is schema j of builder f, made on first reach.
957
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
958
+ return (__s[i] ??= __L.at(f, j));
959
+ }