@epilot/sdk 2.0.0-beta.2 → 2.0.0-beta.4

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 (196) hide show
  1. package/README.md +1 -0
  2. package/definitions/access-token-runtime.json +1 -0
  3. package/definitions/access-token.json +663 -0
  4. package/definitions/address-runtime.json +1 -0
  5. package/definitions/address-suggestions-runtime.json +1 -0
  6. package/definitions/address-suggestions.json +582 -0
  7. package/definitions/address.json +578 -0
  8. package/definitions/ai-agents-runtime.json +1 -0
  9. package/definitions/ai-agents.json +1711 -0
  10. package/definitions/app-runtime.json +1 -0
  11. package/definitions/app.json +4443 -0
  12. package/definitions/audit-logs-runtime.json +1 -0
  13. package/definitions/audit-logs.json +305 -0
  14. package/definitions/automation-runtime.json +1 -0
  15. package/definitions/automation.json +4850 -0
  16. package/definitions/billing-runtime.json +1 -0
  17. package/definitions/billing.json +837 -0
  18. package/definitions/blueprint-manifest-runtime.json +1 -0
  19. package/definitions/blueprint-manifest.json +3376 -0
  20. package/definitions/consent-runtime.json +1 -0
  21. package/definitions/consent.json +344 -0
  22. package/definitions/customer-portal-runtime.json +1 -0
  23. package/definitions/customer-portal.json +15000 -0
  24. package/definitions/dashboard-runtime.json +1 -0
  25. package/definitions/dashboard.json +484 -0
  26. package/definitions/data-management-runtime.json +1 -0
  27. package/definitions/data-management.json +962 -0
  28. package/definitions/deduplication-runtime.json +1 -0
  29. package/definitions/deduplication.json +183 -0
  30. package/definitions/design-runtime.json +1 -0
  31. package/definitions/design.json +1423 -0
  32. package/definitions/document-runtime.json +1 -0
  33. package/definitions/document.json +758 -0
  34. package/definitions/email-settings-runtime.json +1 -0
  35. package/definitions/email-settings.json +2627 -0
  36. package/definitions/email-template-runtime.json +1 -0
  37. package/definitions/email-template.json +1419 -0
  38. package/definitions/entity-mapping-runtime.json +1 -0
  39. package/definitions/entity-mapping.json +1642 -0
  40. package/definitions/entity-runtime.json +1 -0
  41. package/definitions/entity.json +10074 -0
  42. package/definitions/environments-runtime.json +1 -0
  43. package/definitions/environments.json +363 -0
  44. package/definitions/erp-integration-runtime.json +1 -0
  45. package/definitions/erp-integration.json +5845 -0
  46. package/definitions/event-catalog-runtime.json +1 -0
  47. package/definitions/event-catalog.json +1051 -0
  48. package/definitions/file-runtime.json +1 -0
  49. package/definitions/file.json +2842 -0
  50. package/definitions/iban-runtime.json +1 -0
  51. package/definitions/iban.json +132 -0
  52. package/definitions/journey-runtime.json +1 -0
  53. package/definitions/journey.json +2341 -0
  54. package/definitions/kanban-runtime.json +1 -0
  55. package/definitions/kanban.json +929 -0
  56. package/definitions/message-runtime.json +1 -0
  57. package/definitions/message.json +2660 -0
  58. package/definitions/metering-runtime.json +1 -0
  59. package/definitions/metering.json +2321 -0
  60. package/definitions/notes-runtime.json +1 -0
  61. package/definitions/notes.json +1531 -0
  62. package/definitions/notification-runtime.json +1 -0
  63. package/definitions/notification.json +1425 -0
  64. package/definitions/organization-runtime.json +1 -0
  65. package/definitions/organization.json +629 -0
  66. package/definitions/partner-directory-runtime.json +1 -0
  67. package/definitions/partner-directory.json +1718 -0
  68. package/definitions/permissions-runtime.json +1 -0
  69. package/definitions/permissions.json +1480 -0
  70. package/definitions/pricing-runtime.json +1 -0
  71. package/definitions/pricing-tier-runtime.json +1 -0
  72. package/definitions/pricing-tier.json +105 -0
  73. package/definitions/pricing.json +9884 -0
  74. package/definitions/purpose-runtime.json +1 -0
  75. package/definitions/purpose.json +524 -0
  76. package/definitions/sandbox-runtime.json +1 -0
  77. package/definitions/sandbox.json +453 -0
  78. package/definitions/submission-runtime.json +1 -0
  79. package/definitions/submission.json +313 -0
  80. package/definitions/targeting-runtime.json +1 -0
  81. package/definitions/targeting.json +1474 -0
  82. package/definitions/template-variables-runtime.json +1 -0
  83. package/definitions/template-variables.json +1408 -0
  84. package/definitions/user-runtime.json +1 -0
  85. package/definitions/user.json +2408 -0
  86. package/definitions/validation-rules-runtime.json +1 -0
  87. package/definitions/validation-rules.json +1491 -0
  88. package/definitions/webhooks-runtime.json +1 -0
  89. package/definitions/webhooks.json +1525 -0
  90. package/definitions/workflow-definition-runtime.json +1 -0
  91. package/definitions/workflow-definition.json +3417 -0
  92. package/definitions/workflow-runtime.json +1 -0
  93. package/definitions/workflow.json +4106 -0
  94. package/dist/apis/access-token.cjs +13 -84
  95. package/dist/apis/access-token.js +11 -82
  96. package/dist/apis/address-suggestions.cjs +13 -127
  97. package/dist/apis/address-suggestions.js +11 -125
  98. package/dist/apis/address.cjs +13 -79
  99. package/dist/apis/address.js +11 -77
  100. package/dist/apis/ai-agents.cjs +13 -210
  101. package/dist/apis/ai-agents.js +11 -208
  102. package/dist/apis/app.cjs +13 -568
  103. package/dist/apis/app.js +11 -566
  104. package/dist/apis/audit-logs.cjs +13 -50
  105. package/dist/apis/audit-logs.js +11 -48
  106. package/dist/apis/automation.cjs +13 -277
  107. package/dist/apis/automation.js +11 -275
  108. package/dist/apis/billing.cjs +13 -170
  109. package/dist/apis/billing.js +11 -168
  110. package/dist/apis/blueprint-manifest.cjs +13 -499
  111. package/dist/apis/blueprint-manifest.js +11 -497
  112. package/dist/apis/consent.cjs +13 -79
  113. package/dist/apis/consent.js +11 -77
  114. package/dist/apis/customer-portal.cjs +13 -2247
  115. package/dist/apis/customer-portal.js +11 -2245
  116. package/dist/apis/dashboard.cjs +41 -0
  117. package/dist/apis/dashboard.d.cts +18 -0
  118. package/dist/apis/dashboard.d.ts +18 -0
  119. package/dist/apis/dashboard.js +41 -0
  120. package/dist/apis/data-management.cjs +13 -235
  121. package/dist/apis/data-management.js +11 -233
  122. package/dist/apis/deduplication.cjs +13 -37
  123. package/dist/apis/deduplication.js +11 -35
  124. package/dist/apis/design.cjs +13 -214
  125. package/dist/apis/design.js +11 -212
  126. package/dist/apis/document.cjs +13 -73
  127. package/dist/apis/document.js +11 -71
  128. package/dist/apis/email-settings.cjs +13 -528
  129. package/dist/apis/email-settings.js +11 -526
  130. package/dist/apis/email-template.cjs +13 -117
  131. package/dist/apis/email-template.js +11 -115
  132. package/dist/apis/entity-mapping.cjs +13 -210
  133. package/dist/apis/entity-mapping.js +11 -208
  134. package/dist/apis/entity.cjs +13 -1595
  135. package/dist/apis/entity.js +11 -1593
  136. package/dist/apis/environments.cjs +13 -66
  137. package/dist/apis/environments.js +11 -64
  138. package/dist/apis/erp-integration.cjs +13 -581
  139. package/dist/apis/erp-integration.js +11 -579
  140. package/dist/apis/event-catalog.cjs +13 -125
  141. package/dist/apis/event-catalog.js +11 -123
  142. package/dist/apis/file.cjs +13 -568
  143. package/dist/apis/file.js +11 -566
  144. package/dist/apis/iban.cjs +13 -38
  145. package/dist/apis/iban.js +11 -36
  146. package/dist/apis/journey.cjs +13 -265
  147. package/dist/apis/journey.js +11 -263
  148. package/dist/apis/kanban.cjs +13 -159
  149. package/dist/apis/kanban.js +11 -157
  150. package/dist/apis/message.cjs +13 -668
  151. package/dist/apis/message.js +11 -666
  152. package/dist/apis/metering.cjs +13 -394
  153. package/dist/apis/metering.js +11 -392
  154. package/dist/apis/notes.cjs +13 -214
  155. package/dist/apis/notes.js +11 -212
  156. package/dist/apis/notification.cjs +13 -232
  157. package/dist/apis/notification.js +11 -230
  158. package/dist/apis/organization.cjs +13 -113
  159. package/dist/apis/organization.js +11 -111
  160. package/dist/apis/partner-directory.cjs +13 -277
  161. package/dist/apis/partner-directory.js +11 -275
  162. package/dist/apis/permissions.cjs +13 -173
  163. package/dist/apis/permissions.js +11 -171
  164. package/dist/apis/pricing-tier.cjs +14 -32
  165. package/dist/apis/pricing-tier.js +11 -29
  166. package/dist/apis/pricing.cjs +13 -434
  167. package/dist/apis/pricing.js +11 -432
  168. package/dist/apis/purpose.cjs +13 -175
  169. package/dist/apis/purpose.js +11 -173
  170. package/dist/apis/sandbox.cjs +13 -95
  171. package/dist/apis/sandbox.js +11 -93
  172. package/dist/apis/submission.cjs +13 -50
  173. package/dist/apis/submission.js +11 -48
  174. package/dist/apis/targeting.cjs +13 -270
  175. package/dist/apis/targeting.js +11 -268
  176. package/dist/apis/template-variables.cjs +13 -154
  177. package/dist/apis/template-variables.js +11 -152
  178. package/dist/apis/user.cjs +13 -483
  179. package/dist/apis/user.js +11 -481
  180. package/dist/apis/validation-rules.cjs +13 -115
  181. package/dist/apis/validation-rules.js +11 -113
  182. package/dist/apis/webhooks.cjs +13 -247
  183. package/dist/apis/webhooks.js +11 -245
  184. package/dist/apis/workflow-definition.cjs +13 -337
  185. package/dist/apis/workflow-definition.js +11 -335
  186. package/dist/apis/workflow.cjs +13 -397
  187. package/dist/apis/workflow.js +11 -395
  188. package/dist/{chunk-D7ICL3AM.cjs → chunk-5LXNSDG2.cjs} +51 -2
  189. package/dist/{chunk-DGCGLG7G.js → chunk-QMQNMCOC.js} +49 -0
  190. package/dist/dashboard.d-AE3RQ6zo.d.cts +440 -0
  191. package/dist/dashboard.d-AE3RQ6zo.d.ts +440 -0
  192. package/dist/index.cjs +60 -53
  193. package/dist/index.d.cts +70 -68
  194. package/dist/index.d.ts +70 -68
  195. package/dist/index.js +57 -50
  196. package/package.json +55 -3
@@ -2,448 +2,27 @@ import {
2
2
  __commonJS,
3
3
  authorize,
4
4
  createApiClient,
5
- createApiHandle
6
- } from "../chunk-DGCGLG7G.js";
5
+ createApiHandle,
6
+ expand
7
+ } from "../chunk-QMQNMCOC.js";
7
8
 
8
- // src/definitions/pricing.json
9
- var require_pricing = __commonJS({
10
- "src/definitions/pricing.json"(exports, module) {
11
- module.exports = {
12
- openapi: "3.0.3",
13
- info: {
14
- title: "",
15
- version: ""
16
- },
17
- servers: [
18
- {
19
- url: "https://pricing-api.sls.epilot.io"
20
- }
21
- ],
22
- paths: {
23
- "/v1/pricing:compute": {
24
- post: {
25
- operationId: "$calculatePricingDetails",
26
- requestBody: {
27
- required: false,
28
- content: {
29
- "application/json": {}
30
- }
31
- },
32
- responses: {}
33
- }
34
- },
35
- "/v1/order": {
36
- post: {
37
- operationId: "createOrder",
38
- requestBody: {
39
- required: true,
40
- content: {
41
- "application/json": {}
42
- }
43
- },
44
- responses: {}
45
- }
46
- },
47
- "/v1/order/{id}": {
48
- put: {
49
- operationId: "putOrder",
50
- parameters: [
51
- {
52
- in: "path",
53
- name: "id",
54
- required: true
55
- }
56
- ],
57
- requestBody: {
58
- required: true,
59
- content: {
60
- "application/json": {}
61
- }
62
- },
63
- responses: {}
64
- }
65
- },
66
- "/v1/public/cart:checkout": {
67
- post: {
68
- operationId: "$checkoutCart",
69
- parameters: [
70
- {
71
- in: "header",
72
- name: "X-Ivy-Org-ID",
73
- required: true
74
- }
75
- ],
76
- requestBody: {
77
- required: true,
78
- content: {
79
- "application/json": {}
80
- }
81
- },
82
- responses: {}
83
- }
84
- },
85
- "/v1/public/catalog": {
86
- post: {
87
- operationId: "$searchCatalog",
88
- parameters: [
89
- {
90
- in: "header",
91
- name: "X-Ivy-Org-ID"
92
- },
93
- {
94
- in: "header",
95
- name: "Authorization"
96
- }
97
- ],
98
- requestBody: {
99
- required: true,
100
- content: {
101
- "application/json": {}
102
- }
103
- },
104
- responses: {}
105
- }
106
- },
107
- "/v1/catalog": {
108
- post: {
109
- operationId: "$privateSearchCatalog",
110
- requestBody: {
111
- required: true,
112
- content: {
113
- "application/json": {}
114
- }
115
- },
116
- responses: {}
117
- }
118
- },
119
- "/v1/public/validate-promo-codes": {
120
- post: {
121
- operationId: "$validatePromoCodes",
122
- parameters: [
123
- {
124
- in: "header",
125
- name: "X-Ivy-Org-ID",
126
- required: true
127
- }
128
- ],
129
- requestBody: {
130
- required: true,
131
- content: {
132
- "application/json": {}
133
- }
134
- },
135
- responses: {}
136
- }
137
- },
138
- "/v1/public/availability:check": {
139
- post: {
140
- operationId: "$availabilityCheck",
141
- parameters: [
142
- {
143
- in: "header",
144
- name: "X-Ivy-Org-ID",
145
- required: true
146
- }
147
- ],
148
- requestBody: {
149
- required: true,
150
- content: {
151
- "application/json": {}
152
- }
153
- },
154
- responses: {}
155
- }
156
- },
157
- "/v1/validate-availability/{id}": {
158
- get: {
159
- operationId: "$validateAvailabilityFile",
160
- parameters: [
161
- {
162
- in: "path",
163
- name: "id",
164
- required: true
165
- },
166
- {
167
- in: "header",
168
- name: "X-Epilot-Org-ID",
169
- required: true
170
- }
171
- ],
172
- responses: {}
173
- }
174
- },
175
- "/v1/public/historicMarketPrices": {
176
- get: {
177
- operationId: "$historicMarketPrices",
178
- parameters: [
179
- {
180
- in: "query",
181
- name: "market",
182
- required: true
183
- },
184
- {
185
- in: "query",
186
- name: "bidding_zone",
187
- required: true
188
- },
189
- {
190
- in: "query",
191
- name: "frequency",
192
- required: true
193
- },
194
- {
195
- in: "query",
196
- name: "from",
197
- required: true
198
- },
199
- {
200
- in: "query",
201
- name: "to",
202
- required: true
203
- }
204
- ],
205
- responses: {}
206
- }
207
- },
208
- "/v1/public/averageMarketPrice": {
209
- get: {
210
- operationId: "$averageMarketPrice",
211
- parameters: [
212
- {
213
- in: "query",
214
- name: "market",
215
- required: true
216
- },
217
- {
218
- in: "query",
219
- name: "bidding_zone",
220
- required: true
221
- },
222
- {
223
- in: "query",
224
- name: "from",
225
- required: true
226
- },
227
- {
228
- in: "query",
229
- name: "to",
230
- required: true
231
- }
232
- ],
233
- responses: {}
234
- }
235
- },
236
- "/v1/public/integration/{integrationId}/products": {
237
- post: {
238
- operationId: "$searchExternalProducts",
239
- parameters: [
240
- {
241
- in: "path",
242
- name: "integrationId",
243
- required: true
244
- }
245
- ],
246
- requestBody: {
247
- required: true,
248
- content: {
249
- "application/json": {}
250
- }
251
- },
252
- responses: {}
253
- }
254
- },
255
- "/v1/public/integration/{integrationId}/product-recommendations": {
256
- post: {
257
- operationId: "$searchExternalProductRecommendations",
258
- parameters: [
259
- {
260
- in: "path",
261
- name: "integrationId",
262
- required: true
263
- }
264
- ],
265
- requestBody: {
266
- required: true,
267
- content: {
268
- "application/json": {}
269
- }
270
- },
271
- responses: {}
272
- }
273
- },
274
- "/v1/public/integration/{integrationId}/providers:search": {
275
- post: {
276
- operationId: "$searchProviders",
277
- parameters: [
278
- {
279
- in: "header",
280
- name: "X-Epilot-Org-ID",
281
- required: true
282
- },
283
- {
284
- in: "path",
285
- name: "integrationId",
286
- required: true
287
- }
288
- ],
289
- requestBody: {
290
- required: true,
291
- content: {
292
- "application/json": {}
293
- }
294
- },
295
- responses: {}
296
- }
297
- },
298
- "/v1/public/integration/{integrationId}/streets:search": {
299
- post: {
300
- operationId: "$searchStreets",
301
- parameters: [
302
- {
303
- in: "header",
304
- name: "X-Epilot-Org-ID",
305
- required: true
306
- },
307
- {
308
- in: "path",
309
- name: "integrationId",
310
- required: true
311
- }
312
- ],
313
- requestBody: {
314
- required: true,
315
- content: {
316
- "application/json": {}
317
- }
318
- },
319
- responses: {}
320
- }
321
- },
322
- "/v1/public/integration/{integrationId}/compute-price": {
323
- post: {
324
- operationId: "$computePrice",
325
- parameters: [
326
- {
327
- in: "header",
328
- name: "X-Epilot-Org-ID",
329
- required: true
330
- },
331
- {
332
- in: "path",
333
- name: "integrationId",
334
- required: true
335
- }
336
- ],
337
- requestBody: {
338
- content: {
339
- "application/json": {}
340
- }
341
- },
342
- responses: {}
343
- }
344
- },
345
- "/v1/integration/{integrationId}/credentials": {
346
- get: {
347
- operationId: "$getCredentials",
348
- parameters: [
349
- {
350
- in: "path",
351
- name: "integrationId",
352
- required: true
353
- }
354
- ],
355
- responses: {}
356
- }
357
- },
358
- "/v1/integration/{integrationId}/credentials:save": {
359
- put: {
360
- operationId: "$saveCredentials",
361
- parameters: [
362
- {
363
- in: "path",
364
- name: "integrationId",
365
- required: true
366
- }
367
- ],
368
- requestBody: {
369
- content: {
370
- "application/json": {}
371
- }
372
- },
373
- responses: {}
374
- }
375
- },
376
- "/v1/integration/{integrationId}/credentials:delete": {
377
- delete: {
378
- operationId: "$deleteCredentials",
379
- parameters: [
380
- {
381
- in: "path",
382
- name: "integrationId",
383
- required: true
384
- }
385
- ],
386
- responses: {}
387
- }
388
- },
389
- "/v1/public/external-catalog/products": {
390
- post: {
391
- operationId: "$getExternalCatalogProducts",
392
- requestBody: {
393
- required: true,
394
- content: {
395
- "application/json": {}
396
- }
397
- },
398
- responses: {}
399
- }
400
- },
401
- "/v1/public/external-catalog/product-recommendations": {
402
- post: {
403
- operationId: "$getExternalCatalogProductRecommendations",
404
- requestBody: {
405
- required: true,
406
- content: {
407
- "application/json": {}
408
- }
409
- },
410
- responses: {}
411
- }
412
- },
413
- "/v1/public/product-recommendations": {
414
- post: {
415
- operationId: "$productRecommendations",
416
- parameters: [
417
- {
418
- in: "header",
419
- name: "X-Ivy-Org-ID"
420
- }
421
- ],
422
- requestBody: {
423
- required: true,
424
- content: {
425
- "application/json": {}
426
- }
427
- },
428
- responses: {}
429
- }
430
- }
431
- },
432
- components: {}
433
- };
9
+ // src/definitions/pricing-runtime.json
10
+ var require_pricing_runtime = __commonJS({
11
+ "src/definitions/pricing-runtime.json"(exports, module) {
12
+ module.exports = { s: "https://pricing-api.sls.epilot.io", o: [["$calculatePricingDetails", "post", "/v1/pricing:compute", null, 1], ["createOrder", "post", "/v1/order", null, 1], ["putOrder", "put", "/v1/order/{id}", [["id", "p", true]], 1], ["$checkoutCart", "post", "/v1/public/cart:checkout", [["X-Ivy-Org-ID", "h", true]], 1], ["$searchCatalog", "post", "/v1/public/catalog", [["X-Ivy-Org-ID", "h"], ["Authorization", "h"]], 1], ["$privateSearchCatalog", "post", "/v1/catalog", null, 1], ["$validatePromoCodes", "post", "/v1/public/validate-promo-codes", [["X-Ivy-Org-ID", "h", true]], 1], ["$availabilityCheck", "post", "/v1/public/availability:check", [["X-Ivy-Org-ID", "h", true]], 1], ["$validateAvailabilityFile", "get", "/v1/validate-availability/{id}", [["id", "p", true], ["X-Epilot-Org-ID", "h", true]]], ["$historicMarketPrices", "get", "/v1/public/historicMarketPrices", [["market", "q", true], ["bidding_zone", "q", true], ["frequency", "q", true], ["from", "q", true], ["to", "q", true]]], ["$averageMarketPrice", "get", "/v1/public/averageMarketPrice", [["market", "q", true], ["bidding_zone", "q", true], ["from", "q", true], ["to", "q", true]]], ["$searchExternalProducts", "post", "/v1/public/integration/{integrationId}/products", [["integrationId", "p", true]], 1], ["$searchExternalProductRecommendations", "post", "/v1/public/integration/{integrationId}/product-recommendations", [["integrationId", "p", true]], 1], ["$searchProviders", "post", "/v1/public/integration/{integrationId}/providers:search", [["X-Epilot-Org-ID", "h", true], ["integrationId", "p", true]], 1], ["$searchStreets", "post", "/v1/public/integration/{integrationId}/streets:search", [["X-Epilot-Org-ID", "h", true], ["integrationId", "p", true]], 1], ["$computePrice", "post", "/v1/public/integration/{integrationId}/compute-price", [["X-Epilot-Org-ID", "h", true], ["integrationId", "p", true]], 1], ["$getCredentials", "get", "/v1/integration/{integrationId}/credentials", [["integrationId", "p", true]]], ["$saveCredentials", "put", "/v1/integration/{integrationId}/credentials:save", [["integrationId", "p", true]], 1], ["$deleteCredentials", "delete", "/v1/integration/{integrationId}/credentials:delete", [["integrationId", "p", true]]], ["$getExternalCatalogProducts", "post", "/v1/public/external-catalog/products", null, 1], ["$getExternalCatalogProductRecommendations", "post", "/v1/public/external-catalog/product-recommendations", null, 1], ["$productRecommendations", "post", "/v1/public/product-recommendations", [["X-Ivy-Org-ID", "h"]], 1]], v: "3.0.3" };
434
13
  }
435
14
  });
436
15
 
437
16
  // src/apis/pricing.ts
438
17
  var loadDefinition = () => {
439
- const mod = require_pricing();
440
- return mod.default ?? mod;
18
+ const mod = require_pricing_runtime();
19
+ return expand(mod.default ?? mod);
441
20
  };
442
21
  var _instance = null;
443
22
  var resolve = () => {
444
23
  if (!_instance) {
445
- const definition = loadDefinition();
446
- _instance = createApiClient({ definition });
24
+ const def = loadDefinition();
25
+ _instance = createApiClient({ definition: def });
447
26
  }
448
27
  return _instance;
449
28
  };
@@ -3,194 +3,32 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkD7ICL3AMcjs = require('../chunk-D7ICL3AM.cjs');
7
6
 
8
- // src/definitions/purpose.json
9
- var require_purpose = _chunkD7ICL3AMcjs.__commonJS.call(void 0, {
10
- "src/definitions/purpose.json"(exports, module) {
11
- module.exports = {
12
- openapi: "3.0.3",
13
- info: {
14
- title: "",
15
- version: ""
16
- },
17
- servers: [
18
- {
19
- url: "https://purpose.sls.epilot.io"
20
- }
21
- ],
22
- paths: {
23
- "/v1/purpose": {
24
- post: {
25
- operationId: "createPurpose",
26
- requestBody: {
27
- $ref: "#/components/requestBodies/CreatePurposeRequest"
28
- },
29
- responses: {}
30
- }
31
- },
32
- "/v1/purpose:search": {
33
- get: {
34
- operationId: "searchPurposes",
35
- parameters: [
36
- {
37
- $ref: "#/components/parameters/QueryParam"
38
- },
39
- {
40
- $ref: "#/components/parameters/SizeParam"
41
- }
42
- ],
43
- responses: {}
44
- }
45
- },
46
- "/v1/purpose:batchGet": {
47
- post: {
48
- operationId: "batchGetPurposes",
49
- requestBody: {
50
- $ref: "#/components/requestBodies/BatchGetPurposesRequest"
51
- },
52
- responses: {}
53
- }
54
- },
55
- "/v1/purpose/{purposeId}": {
56
- get: {
57
- operationId: "getPurpose",
58
- parameters: [
59
- {
60
- $ref: "#/components/parameters/PurposeIdPathParam"
61
- }
62
- ],
63
- responses: {}
64
- },
65
- put: {
66
- operationId: "updatePurpose",
67
- parameters: [
68
- {
69
- $ref: "#/components/parameters/PurposeIdPathParam"
70
- }
71
- ],
72
- requestBody: {
73
- $ref: "#/components/requestBodies/UpdatePurposeRequest"
74
- },
75
- responses: {}
76
- },
77
- delete: {
78
- operationId: "deletePurpose",
79
- parameters: [
80
- {
81
- $ref: "#/components/parameters/PurposeIdPathParam"
82
- }
83
- ],
84
- responses: {}
85
- }
86
- }
87
- },
88
- components: {
89
- parameters: {
90
- PurposeIdPathParam: {
91
- name: "purposeId",
92
- in: "path",
93
- required: true
94
- },
95
- QueryParam: {
96
- name: "query",
97
- in: "query",
98
- required: false
99
- },
100
- SizeParam: {
101
- name: "size",
102
- in: "query",
103
- required: false
104
- }
105
- },
106
- requestBodies: {
107
- CreatePurposeRequest: {
108
- required: true,
109
- content: {
110
- "application/json": {}
111
- }
112
- },
113
- UpdatePurposeRequest: {
114
- required: true,
115
- content: {
116
- "application/json": {}
117
- }
118
- },
119
- BatchGetPurposesRequest: {
120
- required: true,
121
- content: {
122
- "application/json": {}
123
- }
124
- }
125
- },
126
- responses: {
127
- PurposeResponse: {
128
- content: {
129
- "application/json": {}
130
- }
131
- },
132
- PurposeListResponse: {
133
- content: {
134
- "application/json": {}
135
- }
136
- },
137
- PurposeSearchResponse: {
138
- content: {
139
- "application/json": {}
140
- }
141
- },
142
- ClientErrorResponse: {
143
- content: {
144
- "application/json": {}
145
- }
146
- },
147
- UnauthorizedResponse: {
148
- content: {
149
- "application/json": {}
150
- }
151
- },
152
- ForbiddenResponse: {
153
- content: {
154
- "application/json": {}
155
- }
156
- },
157
- NotFoundResponse: {
158
- content: {
159
- "application/json": {}
160
- }
161
- },
162
- ConflictResponse: {
163
- content: {
164
- "application/json": {}
165
- }
166
- },
167
- ServerErrorResponse: {
168
- content: {
169
- "application/json": {}
170
- }
171
- }
172
- }
173
- }
174
- };
7
+ var _chunk5LXNSDG2cjs = require('../chunk-5LXNSDG2.cjs');
8
+
9
+ // src/definitions/purpose-runtime.json
10
+ var require_purpose_runtime = _chunk5LXNSDG2cjs.__commonJS.call(void 0, {
11
+ "src/definitions/purpose-runtime.json"(exports, module) {
12
+ module.exports = { s: "https://purpose.sls.epilot.io", o: [["createPurpose", "post", "/v1/purpose", null, 1], ["searchPurposes", "get", "/v1/purpose:search", [["QueryParam"], ["SizeParam"]]], ["batchGetPurposes", "post", "/v1/purpose:batchGet", null, 1], ["getPurpose", "get", "/v1/purpose/{purposeId}", [["PurposeIdPathParam"]]], ["updatePurpose", "put", "/v1/purpose/{purposeId}", [["PurposeIdPathParam"]], 1], ["deletePurpose", "delete", "/v1/purpose/{purposeId}", [["PurposeIdPathParam"]]]], v: "3.0.3", cp: { PurposeIdPathParam: ["purposeId", "p", true], QueryParam: ["query", "q"], SizeParam: ["size", "q"] } };
175
13
  }
176
14
  });
177
15
 
178
16
  // src/apis/purpose.ts
179
17
  var loadDefinition = () => {
180
- const mod = require_purpose();
181
- return _nullishCoalesce(mod.default, () => ( mod));
18
+ const mod = require_purpose_runtime();
19
+ return _chunk5LXNSDG2cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
182
20
  };
183
21
  var _instance = null;
184
22
  var resolve = () => {
185
23
  if (!_instance) {
186
- const definition = loadDefinition();
187
- _instance = _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition });
24
+ const def = loadDefinition();
25
+ _instance = _chunk5LXNSDG2cjs.createApiClient.call(void 0, { definition: def });
188
26
  }
189
27
  return _instance;
190
28
  };
191
- var _handle = _chunkD7ICL3AMcjs.createApiHandle.call(void 0, {
29
+ var _handle = _chunk5LXNSDG2cjs.createApiHandle.call(void 0, {
192
30
  resolveClient: resolve,
193
- createClient: () => _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition: loadDefinition() })
31
+ createClient: () => _chunk5LXNSDG2cjs.createApiClient.call(void 0, { definition: loadDefinition() })
194
32
  });
195
33
  var getClient = _handle.getClient;
196
34
  var createClient = _handle.createClient;
@@ -200,4 +38,4 @@ var purpose = _handle;
200
38
 
201
39
 
202
40
 
203
- exports.authorize = _chunkD7ICL3AMcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.purpose = purpose;
41
+ exports.authorize = _chunk5LXNSDG2cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.purpose = purpose;