@klingis/sdk 0.0.0 → 0.2.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 (107) hide show
  1. package/dist/generated/billing-portal/billing-portal.d.ts +93 -0
  2. package/dist/generated/billing-portal/billing-portal.d.ts.map +1 -0
  3. package/dist/generated/billing-portal/billing-portal.js +21 -0
  4. package/dist/generated/billing-portal/billing-portal.js.map +1 -0
  5. package/dist/generated/checkout-sessions/checkout-sessions.d.ts +105 -0
  6. package/dist/generated/checkout-sessions/checkout-sessions.d.ts.map +1 -0
  7. package/dist/generated/checkout-sessions/checkout-sessions.js +21 -0
  8. package/dist/generated/checkout-sessions/checkout-sessions.js.map +1 -0
  9. package/dist/generated/claims/claims.d.ts +258 -0
  10. package/dist/generated/claims/claims.d.ts.map +1 -0
  11. package/dist/generated/claims/claims.js +56 -0
  12. package/dist/generated/claims/claims.js.map +1 -0
  13. package/dist/generated/coupons/coupons.d.ts +198 -0
  14. package/dist/generated/coupons/coupons.d.ts.map +1 -0
  15. package/dist/generated/coupons/coupons.js +57 -0
  16. package/dist/generated/coupons/coupons.js.map +1 -0
  17. package/dist/generated/customers/customers.d.ts +234 -0
  18. package/dist/generated/customers/customers.d.ts.map +1 -0
  19. package/dist/generated/customers/customers.js +57 -0
  20. package/dist/generated/customers/customers.js.map +1 -0
  21. package/dist/generated/device-auth/device-auth.d.ts +45 -0
  22. package/dist/generated/device-auth/device-auth.d.ts.map +1 -0
  23. package/dist/generated/device-auth/device-auth.js +30 -0
  24. package/dist/generated/device-auth/device-auth.js.map +1 -0
  25. package/dist/generated/events/events.d.ts +23 -0
  26. package/dist/generated/events/events.d.ts.map +1 -0
  27. package/dist/generated/events/events.js +19 -0
  28. package/dist/generated/events/events.js.map +1 -0
  29. package/dist/generated/health/health.d.ts +30 -0
  30. package/dist/generated/health/health.d.ts.map +1 -0
  31. package/dist/generated/health/health.js +12 -0
  32. package/dist/generated/health/health.js.map +1 -0
  33. package/dist/generated/index.d.ts +23 -0
  34. package/dist/generated/index.d.ts.map +1 -0
  35. package/dist/generated/index.js +26 -0
  36. package/dist/generated/index.js.map +1 -0
  37. package/dist/generated/klingAPI.schemas.d.ts +17901 -0
  38. package/dist/generated/klingAPI.schemas.d.ts.map +1 -0
  39. package/dist/generated/klingAPI.schemas.js +2 -0
  40. package/dist/generated/klingAPI.schemas.js.map +1 -0
  41. package/dist/generated/merchant/merchant.d.ts +65 -0
  42. package/dist/generated/merchant/merchant.d.ts.map +1 -0
  43. package/dist/generated/merchant/merchant.js +44 -0
  44. package/dist/generated/merchant/merchant.js.map +1 -0
  45. package/dist/generated/meta/meta.d.ts +30 -0
  46. package/dist/generated/meta/meta.d.ts.map +1 -0
  47. package/dist/generated/meta/meta.js +12 -0
  48. package/dist/generated/meta/meta.js.map +1 -0
  49. package/dist/generated/notification-channels/notification-channels.d.ts +255 -0
  50. package/dist/generated/notification-channels/notification-channels.d.ts.map +1 -0
  51. package/dist/generated/notification-channels/notification-channels.js +83 -0
  52. package/dist/generated/notification-channels/notification-channels.js.map +1 -0
  53. package/dist/generated/payment-intents/payment-intents.d.ts +306 -0
  54. package/dist/generated/payment-intents/payment-intents.d.ts.map +1 -0
  55. package/dist/generated/payment-intents/payment-intents.js +76 -0
  56. package/dist/generated/payment-intents/payment-intents.js.map +1 -0
  57. package/dist/generated/payment-links/payment-links.d.ts +258 -0
  58. package/dist/generated/payment-links/payment-links.d.ts.map +1 -0
  59. package/dist/generated/payment-links/payment-links.js +75 -0
  60. package/dist/generated/payment-links/payment-links.js.map +1 -0
  61. package/dist/generated/payment-methods/payment-methods.d.ts +189 -0
  62. package/dist/generated/payment-methods/payment-methods.d.ts.map +1 -0
  63. package/dist/generated/payment-methods/payment-methods.js +40 -0
  64. package/dist/generated/payment-methods/payment-methods.js.map +1 -0
  65. package/dist/generated/pos-devices/pos-devices.d.ts +129 -0
  66. package/dist/generated/pos-devices/pos-devices.d.ts.map +1 -0
  67. package/dist/generated/pos-devices/pos-devices.js +30 -0
  68. package/dist/generated/pos-devices/pos-devices.js.map +1 -0
  69. package/dist/generated/products/products.d.ts +222 -0
  70. package/dist/generated/products/products.d.ts.map +1 -0
  71. package/dist/generated/products/products.js +57 -0
  72. package/dist/generated/products/products.js.map +1 -0
  73. package/dist/generated/promotion-codes/promotion-codes.d.ts +198 -0
  74. package/dist/generated/promotion-codes/promotion-codes.d.ts.map +1 -0
  75. package/dist/generated/promotion-codes/promotion-codes.js +58 -0
  76. package/dist/generated/promotion-codes/promotion-codes.js.map +1 -0
  77. package/dist/generated/reports/reports.d.ts +100 -0
  78. package/dist/generated/reports/reports.d.ts.map +1 -0
  79. package/dist/generated/reports/reports.js +107 -0
  80. package/dist/generated/reports/reports.js.map +1 -0
  81. package/dist/generated/subscriptions/subscriptions.d.ts +309 -0
  82. package/dist/generated/subscriptions/subscriptions.d.ts.map +1 -0
  83. package/dist/generated/subscriptions/subscriptions.js +75 -0
  84. package/dist/generated/subscriptions/subscriptions.js.map +1 -0
  85. package/dist/generated/terminal/terminal.d.ts +168 -0
  86. package/dist/generated/terminal/terminal.d.ts.map +1 -0
  87. package/dist/generated/terminal/terminal.js +32 -0
  88. package/dist/generated/terminal/terminal.js.map +1 -0
  89. package/dist/generated/testing/testing.d.ts +81 -0
  90. package/dist/generated/testing/testing.d.ts.map +1 -0
  91. package/dist/generated/testing/testing.js +12 -0
  92. package/dist/generated/testing/testing.js.map +1 -0
  93. package/dist/index.d.ts +3 -97
  94. package/dist/index.d.ts.map +1 -0
  95. package/dist/index.js +4 -393
  96. package/dist/index.js.map +1 -1
  97. package/dist/mutator.d.ts +8 -0
  98. package/dist/mutator.d.ts.map +1 -0
  99. package/dist/mutator.js +24 -0
  100. package/dist/mutator.js.map +1 -0
  101. package/package.json +14 -13
  102. package/README.md +0 -62
  103. package/dist/index.cjs +0 -394
  104. package/dist/index.cjs.map +0 -1
  105. package/dist/index.d.cts +0 -97
  106. package/dist/kling.min.js +0 -395
  107. package/dist/kling.min.js.map +0 -1
@@ -0,0 +1,198 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Kling API
5
+ * Payments and subscriptions platform for Iceland.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import type { DeleteV1CouponsById200One, DeleteV1CouponsById200Three, DeleteV1CouponsById200Two, DeleteV1CouponsById404One, DeleteV1CouponsById404Three, DeleteV1CouponsById404Two, DeleteV1CouponsById409One, DeleteV1CouponsById409Three, DeleteV1CouponsById409Two, GetV1Coupons200One, GetV1Coupons200Three, GetV1Coupons200Two, GetV1CouponsById200One, GetV1CouponsById200Three, GetV1CouponsById200Two, GetV1CouponsById404One, GetV1CouponsById404Three, GetV1CouponsById404Two, GetV1CouponsParams, PatchV1CouponsById200One, PatchV1CouponsById200Three, PatchV1CouponsById200Two, PatchV1CouponsById400One, PatchV1CouponsById400Three, PatchV1CouponsById400Two, PatchV1CouponsById404One, PatchV1CouponsById404Three, PatchV1CouponsById404Two, PatchV1CouponsByIdBodyOne, PatchV1CouponsByIdBodyThree, PatchV1CouponsByIdBodyTwo, PostV1Coupons200One, PostV1Coupons200Three, PostV1Coupons200Two, PostV1Coupons400One, PostV1Coupons400Three, PostV1Coupons400Two, PostV1CouponsBodyOne, PostV1CouponsBodyThree, PostV1CouponsBodyTwo } from '../klingAPI.schemas';
9
+ /**
10
+ * Create a new coupon
11
+ */
12
+ export type postV1CouponsResponse200ApplicationJson = {
13
+ data: PostV1Coupons200One;
14
+ status: 200;
15
+ };
16
+ export type postV1CouponsResponse200MultipartFormData = {
17
+ data: PostV1Coupons200Two;
18
+ status: 200;
19
+ };
20
+ export type postV1CouponsResponse200TextPlain = {
21
+ data: PostV1Coupons200Three;
22
+ status: 200;
23
+ };
24
+ export type postV1CouponsResponse400ApplicationJson = {
25
+ data: PostV1Coupons400One;
26
+ status: 400;
27
+ };
28
+ export type postV1CouponsResponse400MultipartFormData = {
29
+ data: PostV1Coupons400Two;
30
+ status: 400;
31
+ };
32
+ export type postV1CouponsResponse400TextPlain = {
33
+ data: PostV1Coupons400Three;
34
+ status: 400;
35
+ };
36
+ export type postV1CouponsResponseSuccess = (postV1CouponsResponse200ApplicationJson | postV1CouponsResponse200MultipartFormData | postV1CouponsResponse200TextPlain) & {
37
+ headers: Headers;
38
+ };
39
+ export type postV1CouponsResponseError = (postV1CouponsResponse400ApplicationJson | postV1CouponsResponse400MultipartFormData | postV1CouponsResponse400TextPlain) & {
40
+ headers: Headers;
41
+ };
42
+ export type postV1CouponsResponse = (postV1CouponsResponseSuccess | postV1CouponsResponseError);
43
+ export declare const getPostV1CouponsUrl: () => string;
44
+ export declare const postV1Coupons: (postV1CouponsBody: PostV1CouponsBodyOne | PostV1CouponsBodyTwo | PostV1CouponsBodyThree, options?: RequestInit) => Promise<postV1CouponsResponse>;
45
+ /**
46
+ * List coupons
47
+ */
48
+ export type getV1CouponsResponse200ApplicationJson = {
49
+ data: GetV1Coupons200One;
50
+ status: 200;
51
+ };
52
+ export type getV1CouponsResponse200MultipartFormData = {
53
+ data: GetV1Coupons200Two;
54
+ status: 200;
55
+ };
56
+ export type getV1CouponsResponse200TextPlain = {
57
+ data: GetV1Coupons200Three;
58
+ status: 200;
59
+ };
60
+ export type getV1CouponsResponseSuccess = (getV1CouponsResponse200ApplicationJson | getV1CouponsResponse200MultipartFormData | getV1CouponsResponse200TextPlain) & {
61
+ headers: Headers;
62
+ };
63
+ export type getV1CouponsResponse = (getV1CouponsResponseSuccess);
64
+ export declare const getGetV1CouponsUrl: (params: GetV1CouponsParams) => string;
65
+ export declare const getV1Coupons: (params: GetV1CouponsParams, options?: RequestInit) => Promise<getV1CouponsResponse>;
66
+ /**
67
+ * Retrieve a coupon
68
+ */
69
+ export type getV1CouponsByIdResponse200ApplicationJson = {
70
+ data: GetV1CouponsById200One;
71
+ status: 200;
72
+ };
73
+ export type getV1CouponsByIdResponse200MultipartFormData = {
74
+ data: GetV1CouponsById200Two;
75
+ status: 200;
76
+ };
77
+ export type getV1CouponsByIdResponse200TextPlain = {
78
+ data: GetV1CouponsById200Three;
79
+ status: 200;
80
+ };
81
+ export type getV1CouponsByIdResponse404ApplicationJson = {
82
+ data: GetV1CouponsById404One;
83
+ status: 404;
84
+ };
85
+ export type getV1CouponsByIdResponse404MultipartFormData = {
86
+ data: GetV1CouponsById404Two;
87
+ status: 404;
88
+ };
89
+ export type getV1CouponsByIdResponse404TextPlain = {
90
+ data: GetV1CouponsById404Three;
91
+ status: 404;
92
+ };
93
+ export type getV1CouponsByIdResponseSuccess = (getV1CouponsByIdResponse200ApplicationJson | getV1CouponsByIdResponse200MultipartFormData | getV1CouponsByIdResponse200TextPlain) & {
94
+ headers: Headers;
95
+ };
96
+ export type getV1CouponsByIdResponseError = (getV1CouponsByIdResponse404ApplicationJson | getV1CouponsByIdResponse404MultipartFormData | getV1CouponsByIdResponse404TextPlain) & {
97
+ headers: Headers;
98
+ };
99
+ export type getV1CouponsByIdResponse = (getV1CouponsByIdResponseSuccess | getV1CouponsByIdResponseError);
100
+ export declare const getGetV1CouponsByIdUrl: (id: string) => string;
101
+ export declare const getV1CouponsById: (id: string, options?: RequestInit) => Promise<getV1CouponsByIdResponse>;
102
+ /**
103
+ * Update a coupon
104
+ */
105
+ export type patchV1CouponsByIdResponse200ApplicationJson = {
106
+ data: PatchV1CouponsById200One;
107
+ status: 200;
108
+ };
109
+ export type patchV1CouponsByIdResponse200MultipartFormData = {
110
+ data: PatchV1CouponsById200Two;
111
+ status: 200;
112
+ };
113
+ export type patchV1CouponsByIdResponse200TextPlain = {
114
+ data: PatchV1CouponsById200Three;
115
+ status: 200;
116
+ };
117
+ export type patchV1CouponsByIdResponse400ApplicationJson = {
118
+ data: PatchV1CouponsById400One;
119
+ status: 400;
120
+ };
121
+ export type patchV1CouponsByIdResponse400MultipartFormData = {
122
+ data: PatchV1CouponsById400Two;
123
+ status: 400;
124
+ };
125
+ export type patchV1CouponsByIdResponse400TextPlain = {
126
+ data: PatchV1CouponsById400Three;
127
+ status: 400;
128
+ };
129
+ export type patchV1CouponsByIdResponse404ApplicationJson = {
130
+ data: PatchV1CouponsById404One;
131
+ status: 404;
132
+ };
133
+ export type patchV1CouponsByIdResponse404MultipartFormData = {
134
+ data: PatchV1CouponsById404Two;
135
+ status: 404;
136
+ };
137
+ export type patchV1CouponsByIdResponse404TextPlain = {
138
+ data: PatchV1CouponsById404Three;
139
+ status: 404;
140
+ };
141
+ export type patchV1CouponsByIdResponseSuccess = (patchV1CouponsByIdResponse200ApplicationJson | patchV1CouponsByIdResponse200MultipartFormData | patchV1CouponsByIdResponse200TextPlain) & {
142
+ headers: Headers;
143
+ };
144
+ export type patchV1CouponsByIdResponseError = (patchV1CouponsByIdResponse400ApplicationJson | patchV1CouponsByIdResponse400MultipartFormData | patchV1CouponsByIdResponse400TextPlain | patchV1CouponsByIdResponse404ApplicationJson | patchV1CouponsByIdResponse404MultipartFormData | patchV1CouponsByIdResponse404TextPlain) & {
145
+ headers: Headers;
146
+ };
147
+ export type patchV1CouponsByIdResponse = (patchV1CouponsByIdResponseSuccess | patchV1CouponsByIdResponseError);
148
+ export declare const getPatchV1CouponsByIdUrl: (id: string) => string;
149
+ export declare const patchV1CouponsById: (id: string, patchV1CouponsByIdBody: PatchV1CouponsByIdBodyOne | PatchV1CouponsByIdBodyTwo | PatchV1CouponsByIdBodyThree, options?: RequestInit) => Promise<patchV1CouponsByIdResponse>;
150
+ /**
151
+ * Delete a coupon
152
+ */
153
+ export type deleteV1CouponsByIdResponse200ApplicationJson = {
154
+ data: DeleteV1CouponsById200One;
155
+ status: 200;
156
+ };
157
+ export type deleteV1CouponsByIdResponse200MultipartFormData = {
158
+ data: DeleteV1CouponsById200Two;
159
+ status: 200;
160
+ };
161
+ export type deleteV1CouponsByIdResponse200TextPlain = {
162
+ data: DeleteV1CouponsById200Three;
163
+ status: 200;
164
+ };
165
+ export type deleteV1CouponsByIdResponse404ApplicationJson = {
166
+ data: DeleteV1CouponsById404One;
167
+ status: 404;
168
+ };
169
+ export type deleteV1CouponsByIdResponse404MultipartFormData = {
170
+ data: DeleteV1CouponsById404Two;
171
+ status: 404;
172
+ };
173
+ export type deleteV1CouponsByIdResponse404TextPlain = {
174
+ data: DeleteV1CouponsById404Three;
175
+ status: 404;
176
+ };
177
+ export type deleteV1CouponsByIdResponse409ApplicationJson = {
178
+ data: DeleteV1CouponsById409One;
179
+ status: 409;
180
+ };
181
+ export type deleteV1CouponsByIdResponse409MultipartFormData = {
182
+ data: DeleteV1CouponsById409Two;
183
+ status: 409;
184
+ };
185
+ export type deleteV1CouponsByIdResponse409TextPlain = {
186
+ data: DeleteV1CouponsById409Three;
187
+ status: 409;
188
+ };
189
+ export type deleteV1CouponsByIdResponseSuccess = (deleteV1CouponsByIdResponse200ApplicationJson | deleteV1CouponsByIdResponse200MultipartFormData | deleteV1CouponsByIdResponse200TextPlain) & {
190
+ headers: Headers;
191
+ };
192
+ export type deleteV1CouponsByIdResponseError = (deleteV1CouponsByIdResponse404ApplicationJson | deleteV1CouponsByIdResponse404MultipartFormData | deleteV1CouponsByIdResponse404TextPlain | deleteV1CouponsByIdResponse409ApplicationJson | deleteV1CouponsByIdResponse409MultipartFormData | deleteV1CouponsByIdResponse409TextPlain) & {
193
+ headers: Headers;
194
+ };
195
+ export type deleteV1CouponsByIdResponse = (deleteV1CouponsByIdResponseSuccess | deleteV1CouponsByIdResponseError);
196
+ export declare const getDeleteV1CouponsByIdUrl: (id: string) => string;
197
+ export declare const deleteV1CouponsById: (id: string, options?: RequestInit) => Promise<deleteV1CouponsByIdResponse>;
198
+ //# sourceMappingURL=coupons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,E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AClB,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,6CAA6C,GAAG,+CAA+C,GAAG,uCAAuC,GAAG,6CAA6C,GAAG,+CAA+C,GAAG,uCAAuC,CAAC,GAAG;IACvU,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,kCAAkC,GAAG,gCAAgC,CAAC,CAAA;AAEjH,eAAO,MAAM,yBAAyB,GAAI,IAAI,MAAM,WAMnD,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,2BAA2B,CAS9G,CAAA"}
@@ -0,0 +1,57 @@
1
+ import { customFetch } from '../../mutator';
2
+ export const getPostV1CouponsUrl = () => {
3
+ return `http://localhost:3001/v1/coupons/`;
4
+ };
5
+ export const postV1Coupons = async (postV1CouponsBody, options) => {
6
+ return customFetch(getPostV1CouponsUrl(), {
7
+ ...options,
8
+ method: 'POST',
9
+ body: JSON.stringify(postV1CouponsBody)
10
+ });
11
+ };
12
+ ;
13
+ export const getGetV1CouponsUrl = (params) => {
14
+ const normalizedParams = new URLSearchParams();
15
+ Object.entries(params || {}).forEach(([key, value]) => {
16
+ if (value !== undefined) {
17
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
18
+ }
19
+ });
20
+ const stringifiedParams = normalizedParams.toString();
21
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/coupons/?${stringifiedParams}` : `http://localhost:3001/v1/coupons/`;
22
+ };
23
+ export const getV1Coupons = async (params, options) => {
24
+ return customFetch(getGetV1CouponsUrl(params), {
25
+ ...options,
26
+ method: 'GET'
27
+ });
28
+ };
29
+ export const getGetV1CouponsByIdUrl = (id) => {
30
+ return `http://localhost:3001/v1/coupons/${id}`;
31
+ };
32
+ export const getV1CouponsById = async (id, options) => {
33
+ return customFetch(getGetV1CouponsByIdUrl(id), {
34
+ ...options,
35
+ method: 'GET'
36
+ });
37
+ };
38
+ export const getPatchV1CouponsByIdUrl = (id) => {
39
+ return `http://localhost:3001/v1/coupons/${id}`;
40
+ };
41
+ export const patchV1CouponsById = async (id, patchV1CouponsByIdBody, options) => {
42
+ return customFetch(getPatchV1CouponsByIdUrl(id), {
43
+ ...options,
44
+ method: 'PATCH',
45
+ body: JSON.stringify(patchV1CouponsByIdBody)
46
+ });
47
+ };
48
+ export const getDeleteV1CouponsByIdUrl = (id) => {
49
+ return `http://localhost:3001/v1/coupons/${id}`;
50
+ };
51
+ export const deleteV1CouponsById = async (id, options) => {
52
+ return customFetch(getDeleteV1CouponsByIdUrl(id), {
53
+ ...options,
54
+ method: 'DELETE'
55
+ });
56
+ };
57
+ //# sourceMappingURL=coupons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names":[],"mappings":"AAkDA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA4C5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAKtC,OAAO,mCAAmC,CAAA;AAC5C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,iBAAuF,EAAE,OAAqB,EAAkC,EAAE;IAEpL,OAAO,WAAW,CAAwB,mBAAmB,EAAE,EAC/D;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QAEd,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,iBAAiB,CAAE;KACtB,CACF,CAAC;AAAA,CAAC,CAAA;AAwBH,CAAC;AAID,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAA0B,EAAG,EAAE;IAChE,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAEpD,IAAI,KAAK,KAAK,S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OAAO;QACV,MAAM,EAAE,OAAO;QAEf,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,sBAAsB,CAAE;KAC3B,CACF,CAAC;AAAA,CAAC,CAAA;AA4DH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EAAU,EAAG,EAAE;IAKvD,OAAO,oCAAoC,EAAE,EAAE,CAAA;AACjD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAAE,EAAU,EAAE,OAAqB,EAAwC,EAAE;IAEnH,OAAO,WAAW,CAA8B,yBAAyB,CAAC,EAAE,CAAC,EAC7E;QACE,GAAG,OAAO;QACV,MAAM,EAAE,QAAQ;KAGjB,CACF,CAAC;AAAA,CAAC,CAAA"}
@@ -0,0 +1,234 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Kling API
5
+ * Payments and subscriptions platform for Iceland.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import type { DeleteV1CustomersById200One, DeleteV1CustomersById200Three, DeleteV1CustomersById200Two, DeleteV1CustomersById400One, DeleteV1CustomersById400Three, DeleteV1CustomersById400Two, DeleteV1CustomersById404One, DeleteV1CustomersById404Three, DeleteV1CustomersById404Two, DeleteV1CustomersById409One, DeleteV1CustomersById409Three, DeleteV1CustomersById409Two, GetV1Customers200One, GetV1Customers200Three, GetV1Customers200Two, GetV1CustomersById200One, GetV1CustomersById200Three, GetV1CustomersById200Two, GetV1CustomersById404One, GetV1CustomersById404Three, GetV1CustomersById404Two, GetV1CustomersParams, PatchV1CustomersById200One, PatchV1CustomersById200Three, PatchV1CustomersById200Two, PatchV1CustomersById400One, PatchV1CustomersById400Three, PatchV1CustomersById400Two, PatchV1CustomersById404One, PatchV1CustomersById404Three, PatchV1CustomersById404Two, PatchV1CustomersById409One, PatchV1CustomersById409Three, PatchV1CustomersById409Two, PatchV1CustomersByIdBodyOne, PatchV1CustomersByIdBodyThree, PatchV1CustomersByIdBodyTwo, PostV1Customers200One, PostV1Customers200Three, PostV1Customers200Two, PostV1Customers400One, PostV1Customers400Three, PostV1Customers400Two, PostV1Customers409One, PostV1Customers409Three, PostV1Customers409Two, PostV1CustomersBodyOne, PostV1CustomersBodyThree, PostV1CustomersBodyTwo } from '../klingAPI.schemas';
9
+ /**
10
+ * Create a new customer
11
+ */
12
+ export type postV1CustomersResponse200ApplicationJson = {
13
+ data: PostV1Customers200One;
14
+ status: 200;
15
+ };
16
+ export type postV1CustomersResponse200MultipartFormData = {
17
+ data: PostV1Customers200Two;
18
+ status: 200;
19
+ };
20
+ export type postV1CustomersResponse200TextPlain = {
21
+ data: PostV1Customers200Three;
22
+ status: 200;
23
+ };
24
+ export type postV1CustomersResponse400ApplicationJson = {
25
+ data: PostV1Customers400One;
26
+ status: 400;
27
+ };
28
+ export type postV1CustomersResponse400MultipartFormData = {
29
+ data: PostV1Customers400Two;
30
+ status: 400;
31
+ };
32
+ export type postV1CustomersResponse400TextPlain = {
33
+ data: PostV1Customers400Three;
34
+ status: 400;
35
+ };
36
+ export type postV1CustomersResponse409ApplicationJson = {
37
+ data: PostV1Customers409One;
38
+ status: 409;
39
+ };
40
+ export type postV1CustomersResponse409MultipartFormData = {
41
+ data: PostV1Customers409Two;
42
+ status: 409;
43
+ };
44
+ export type postV1CustomersResponse409TextPlain = {
45
+ data: PostV1Customers409Three;
46
+ status: 409;
47
+ };
48
+ export type postV1CustomersResponseSuccess = (postV1CustomersResponse200ApplicationJson | postV1CustomersResponse200MultipartFormData | postV1CustomersResponse200TextPlain) & {
49
+ headers: Headers;
50
+ };
51
+ export type postV1CustomersResponseError = (postV1CustomersResponse400ApplicationJson | postV1CustomersResponse400MultipartFormData | postV1CustomersResponse400TextPlain | postV1CustomersResponse409ApplicationJson | postV1CustomersResponse409MultipartFormData | postV1CustomersResponse409TextPlain) & {
52
+ headers: Headers;
53
+ };
54
+ export type postV1CustomersResponse = (postV1CustomersResponseSuccess | postV1CustomersResponseError);
55
+ export declare const getPostV1CustomersUrl: () => string;
56
+ export declare const postV1Customers: (postV1CustomersBody: PostV1CustomersBodyOne | PostV1CustomersBodyTwo | PostV1CustomersBodyThree, options?: RequestInit) => Promise<postV1CustomersResponse>;
57
+ /**
58
+ * List all customers. Optionally filter by external_id.
59
+ */
60
+ export type getV1CustomersResponse200ApplicationJson = {
61
+ data: GetV1Customers200One;
62
+ status: 200;
63
+ };
64
+ export type getV1CustomersResponse200MultipartFormData = {
65
+ data: GetV1Customers200Two;
66
+ status: 200;
67
+ };
68
+ export type getV1CustomersResponse200TextPlain = {
69
+ data: GetV1Customers200Three;
70
+ status: 200;
71
+ };
72
+ export type getV1CustomersResponseSuccess = (getV1CustomersResponse200ApplicationJson | getV1CustomersResponse200MultipartFormData | getV1CustomersResponse200TextPlain) & {
73
+ headers: Headers;
74
+ };
75
+ export type getV1CustomersResponse = (getV1CustomersResponseSuccess);
76
+ export declare const getGetV1CustomersUrl: (params: GetV1CustomersParams) => string;
77
+ export declare const getV1Customers: (params: GetV1CustomersParams, options?: RequestInit) => Promise<getV1CustomersResponse>;
78
+ /**
79
+ * Retrieve a customer by ID, including their payment methods
80
+ */
81
+ export type getV1CustomersByIdResponse200ApplicationJson = {
82
+ data: GetV1CustomersById200One;
83
+ status: 200;
84
+ };
85
+ export type getV1CustomersByIdResponse200MultipartFormData = {
86
+ data: GetV1CustomersById200Two;
87
+ status: 200;
88
+ };
89
+ export type getV1CustomersByIdResponse200TextPlain = {
90
+ data: GetV1CustomersById200Three;
91
+ status: 200;
92
+ };
93
+ export type getV1CustomersByIdResponse404ApplicationJson = {
94
+ data: GetV1CustomersById404One;
95
+ status: 404;
96
+ };
97
+ export type getV1CustomersByIdResponse404MultipartFormData = {
98
+ data: GetV1CustomersById404Two;
99
+ status: 404;
100
+ };
101
+ export type getV1CustomersByIdResponse404TextPlain = {
102
+ data: GetV1CustomersById404Three;
103
+ status: 404;
104
+ };
105
+ export type getV1CustomersByIdResponseSuccess = (getV1CustomersByIdResponse200ApplicationJson | getV1CustomersByIdResponse200MultipartFormData | getV1CustomersByIdResponse200TextPlain) & {
106
+ headers: Headers;
107
+ };
108
+ export type getV1CustomersByIdResponseError = (getV1CustomersByIdResponse404ApplicationJson | getV1CustomersByIdResponse404MultipartFormData | getV1CustomersByIdResponse404TextPlain) & {
109
+ headers: Headers;
110
+ };
111
+ export type getV1CustomersByIdResponse = (getV1CustomersByIdResponseSuccess | getV1CustomersByIdResponseError);
112
+ export declare const getGetV1CustomersByIdUrl: (id: string) => string;
113
+ export declare const getV1CustomersById: (id: string, options?: RequestInit) => Promise<getV1CustomersByIdResponse>;
114
+ /**
115
+ * Update a customer
116
+ */
117
+ export type patchV1CustomersByIdResponse200ApplicationJson = {
118
+ data: PatchV1CustomersById200One;
119
+ status: 200;
120
+ };
121
+ export type patchV1CustomersByIdResponse200MultipartFormData = {
122
+ data: PatchV1CustomersById200Two;
123
+ status: 200;
124
+ };
125
+ export type patchV1CustomersByIdResponse200TextPlain = {
126
+ data: PatchV1CustomersById200Three;
127
+ status: 200;
128
+ };
129
+ export type patchV1CustomersByIdResponse400ApplicationJson = {
130
+ data: PatchV1CustomersById400One;
131
+ status: 400;
132
+ };
133
+ export type patchV1CustomersByIdResponse400MultipartFormData = {
134
+ data: PatchV1CustomersById400Two;
135
+ status: 400;
136
+ };
137
+ export type patchV1CustomersByIdResponse400TextPlain = {
138
+ data: PatchV1CustomersById400Three;
139
+ status: 400;
140
+ };
141
+ export type patchV1CustomersByIdResponse404ApplicationJson = {
142
+ data: PatchV1CustomersById404One;
143
+ status: 404;
144
+ };
145
+ export type patchV1CustomersByIdResponse404MultipartFormData = {
146
+ data: PatchV1CustomersById404Two;
147
+ status: 404;
148
+ };
149
+ export type patchV1CustomersByIdResponse404TextPlain = {
150
+ data: PatchV1CustomersById404Three;
151
+ status: 404;
152
+ };
153
+ export type patchV1CustomersByIdResponse409ApplicationJson = {
154
+ data: PatchV1CustomersById409One;
155
+ status: 409;
156
+ };
157
+ export type patchV1CustomersByIdResponse409MultipartFormData = {
158
+ data: PatchV1CustomersById409Two;
159
+ status: 409;
160
+ };
161
+ export type patchV1CustomersByIdResponse409TextPlain = {
162
+ data: PatchV1CustomersById409Three;
163
+ status: 409;
164
+ };
165
+ export type patchV1CustomersByIdResponseSuccess = (patchV1CustomersByIdResponse200ApplicationJson | patchV1CustomersByIdResponse200MultipartFormData | patchV1CustomersByIdResponse200TextPlain) & {
166
+ headers: Headers;
167
+ };
168
+ export type patchV1CustomersByIdResponseError = (patchV1CustomersByIdResponse400ApplicationJson | patchV1CustomersByIdResponse400MultipartFormData | patchV1CustomersByIdResponse400TextPlain | patchV1CustomersByIdResponse404ApplicationJson | patchV1CustomersByIdResponse404MultipartFormData | patchV1CustomersByIdResponse404TextPlain | patchV1CustomersByIdResponse409ApplicationJson | patchV1CustomersByIdResponse409MultipartFormData | patchV1CustomersByIdResponse409TextPlain) & {
169
+ headers: Headers;
170
+ };
171
+ export type patchV1CustomersByIdResponse = (patchV1CustomersByIdResponseSuccess | patchV1CustomersByIdResponseError);
172
+ export declare const getPatchV1CustomersByIdUrl: (id: string) => string;
173
+ export declare const patchV1CustomersById: (id: string, patchV1CustomersByIdBody: PatchV1CustomersByIdBodyOne | PatchV1CustomersByIdBodyTwo | PatchV1CustomersByIdBodyThree, options?: RequestInit) => Promise<patchV1CustomersByIdResponse>;
174
+ /**
175
+ * Delete a customer and revoke their payment methods. Customers with payment history (checkout sessions or payments) cannot be deleted and return 409 `customer_has_payment_history`.
176
+ */
177
+ export type deleteV1CustomersByIdResponse200ApplicationJson = {
178
+ data: DeleteV1CustomersById200One;
179
+ status: 200;
180
+ };
181
+ export type deleteV1CustomersByIdResponse200MultipartFormData = {
182
+ data: DeleteV1CustomersById200Two;
183
+ status: 200;
184
+ };
185
+ export type deleteV1CustomersByIdResponse200TextPlain = {
186
+ data: DeleteV1CustomersById200Three;
187
+ status: 200;
188
+ };
189
+ export type deleteV1CustomersByIdResponse400ApplicationJson = {
190
+ data: DeleteV1CustomersById400One;
191
+ status: 400;
192
+ };
193
+ export type deleteV1CustomersByIdResponse400MultipartFormData = {
194
+ data: DeleteV1CustomersById400Two;
195
+ status: 400;
196
+ };
197
+ export type deleteV1CustomersByIdResponse400TextPlain = {
198
+ data: DeleteV1CustomersById400Three;
199
+ status: 400;
200
+ };
201
+ export type deleteV1CustomersByIdResponse404ApplicationJson = {
202
+ data: DeleteV1CustomersById404One;
203
+ status: 404;
204
+ };
205
+ export type deleteV1CustomersByIdResponse404MultipartFormData = {
206
+ data: DeleteV1CustomersById404Two;
207
+ status: 404;
208
+ };
209
+ export type deleteV1CustomersByIdResponse404TextPlain = {
210
+ data: DeleteV1CustomersById404Three;
211
+ status: 404;
212
+ };
213
+ export type deleteV1CustomersByIdResponse409ApplicationJson = {
214
+ data: DeleteV1CustomersById409One;
215
+ status: 409;
216
+ };
217
+ export type deleteV1CustomersByIdResponse409MultipartFormData = {
218
+ data: DeleteV1CustomersById409Two;
219
+ status: 409;
220
+ };
221
+ export type deleteV1CustomersByIdResponse409TextPlain = {
222
+ data: DeleteV1CustomersById409Three;
223
+ status: 409;
224
+ };
225
+ export type deleteV1CustomersByIdResponseSuccess = (deleteV1CustomersByIdResponse200ApplicationJson | deleteV1CustomersByIdResponse200MultipartFormData | deleteV1CustomersByIdResponse200TextPlain) & {
226
+ headers: Headers;
227
+ };
228
+ export type deleteV1CustomersByIdResponseError = (deleteV1CustomersByIdResponse400ApplicationJson | deleteV1CustomersByIdResponse400MultipartFormData | deleteV1CustomersByIdResponse400TextPlain | deleteV1CustomersByIdResponse404ApplicationJson | deleteV1CustomersByIdResponse404MultipartFormData | deleteV1CustomersByIdResponse404TextPlain | deleteV1CustomersByIdResponse409ApplicationJson | deleteV1CustomersByIdResponse409MultipartFormData | deleteV1CustomersByIdResponse409TextPlain) & {
229
+ headers: Headers;
230
+ };
231
+ export type deleteV1CustomersByIdResponse = (deleteV1CustomersByIdResponseSuccess | deleteV1CustomersByIdResponseError);
232
+ export declare const getDeleteV1CustomersByIdUrl: (id: string) => string;
233
+ export declare const deleteV1CustomersById: (id: string, options?: RequestInit) => Promise<deleteV1CustomersByIdResponse>;
234
+ //# sourceMappingURL=customers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/generated/customers/customers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,EAAE,qBAAqB,CAAA;IAC3B,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,qBAAqB,CAAA;IAC3B,MAAM,EAAE,GAAG,CAAA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AAM,iDAAiD,GAAG;IAC9D,IAAI,EAAE,2BAA2B,CAAA;IACjC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,EAAE,6BAA6B,CAAA;IACnC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG,CAAC,+CAA+C,GAAG,iDAAiD,GAAG,yCAAyC,CAAC,GAAG;IACrM,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,+CAA+C,GAAG,iDAAiD,GAAG,yCAAyC,GAAG,+CAA+C,GAAG,iDAAiD,GAAG,yCAAyC,GAAG,+CAA+C,GAAG,iDAAiD,GAAG,yCAAyC,CAAC,GAAG;IACve,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,oCAAoC,GAAG,kCAAkC,CAAC,CAAA;AAEvH,eAAO,MAAM,2BAA2B,GAAI,IAAI,MAAM,WAMrD,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,6BAA6B,CASlH,CAAA"}
@@ -0,0 +1,57 @@
1
+ import { customFetch } from '../../mutator';
2
+ export const getPostV1CustomersUrl = () => {
3
+ return `http://localhost:3001/v1/customers/`;
4
+ };
5
+ export const postV1Customers = async (postV1CustomersBody, options) => {
6
+ return customFetch(getPostV1CustomersUrl(), {
7
+ ...options,
8
+ method: 'POST',
9
+ body: JSON.stringify(postV1CustomersBody)
10
+ });
11
+ };
12
+ ;
13
+ export const getGetV1CustomersUrl = (params) => {
14
+ const normalizedParams = new URLSearchParams();
15
+ Object.entries(params || {}).forEach(([key, value]) => {
16
+ if (value !== undefined) {
17
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
18
+ }
19
+ });
20
+ const stringifiedParams = normalizedParams.toString();
21
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/customers/?${stringifiedParams}` : `http://localhost:3001/v1/customers/`;
22
+ };
23
+ export const getV1Customers = async (params, options) => {
24
+ return customFetch(getGetV1CustomersUrl(params), {
25
+ ...options,
26
+ method: 'GET'
27
+ });
28
+ };
29
+ export const getGetV1CustomersByIdUrl = (id) => {
30
+ return `http://localhost:3001/v1/customers/${id}`;
31
+ };
32
+ export const getV1CustomersById = async (id, options) => {
33
+ return customFetch(getGetV1CustomersByIdUrl(id), {
34
+ ...options,
35
+ method: 'GET'
36
+ });
37
+ };
38
+ export const getPatchV1CustomersByIdUrl = (id) => {
39
+ return `http://localhost:3001/v1/customers/${id}`;
40
+ };
41
+ export const patchV1CustomersById = async (id, patchV1CustomersByIdBody, options) => {
42
+ return customFetch(getPatchV1CustomersByIdUrl(id), {
43
+ ...options,
44
+ method: 'PATCH',
45
+ body: JSON.stringify(patchV1CustomersByIdBody)
46
+ });
47
+ };
48
+ export const getDeleteV1CustomersByIdUrl = (id) => {
49
+ return `http://localhost:3001/v1/customers/${id}`;
50
+ };
51
+ export const deleteV1CustomersById = async (id, options) => {
52
+ return customFetch(getDeleteV1CustomersByIdUrl(id), {
53
+ ...options,
54
+ method: 'DELETE'
55
+ });
56
+ };
57
+ //# sourceMappingURL=customers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/generated/customers/customers.ts"],"names":[],"mappings":"AA2DA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA2D5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAKxC,OAAO,qCAAqC,CAAA;AAC9C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,mBAA+F,EAAE,OAAqB,EAAoC,EAAE;IAEhM,OAAO,WAAW,CAA0B,qBAAqB,EAAE,EACnE;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QAEd,IAAI,EAAE,IAA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QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AA2EH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAAU,EAAG,EAAE;IAKxD,OAAO,sCAAsC,EAAE,EAAE,CAAA;AACnD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EAAE,EAAU,EACjD,wBAAmH,EAAE,OAAqB,EAAyC,EAAE;IAEvL,OAAO,WAAW,CAA+B,0BAA0B,CAAC,EAAE,CAAC,EAC/E;QACE,GAAG,OAAO;QACV,MAAM,EAAE,OAAO;QAEf,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,wBAAwB,CAAE;KAC7B,CACF,CAAC;AAAA,CAAC,CAAA;AA2EH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAAU,EAAG,EAAE;IAKzD,OAAO,sCAAsC,EAAE,EAAE,CAAA;AACnD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EAAE,EAAU,EAAE,OAAqB,EAA0C,EAAE;IAEvH,OAAO,WAAW,CAAgC,2BAA2B,CAAC,EAAE,CAAC,EACjF;QACE,GAAG,OAAO;QACV,MAAM,EAAE,QAAQ;KAGjB,CACF,CAAC;AAAA,CAAC,CAAA"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Kling API
5
+ * Payments and subscriptions platform for Iceland.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import type { GetV1DeviceTokenParams, PostV1DeviceAuthorize200One, PostV1DeviceAuthorize200Three, PostV1DeviceAuthorize200Two, PostV1DeviceAuthorizeBodyOne, PostV1DeviceAuthorizeBodyThree, PostV1DeviceAuthorizeBodyTwo } from '../klingAPI.schemas';
9
+ /**
10
+ * Initiates a device auth flow for CLI or AI agent. Returns a user code to display and a device code for polling.
11
+ * @summary Start device authorization flow
12
+ */
13
+ export type postV1DeviceAuthorizeResponse200ApplicationJson = {
14
+ data: PostV1DeviceAuthorize200One;
15
+ status: 200;
16
+ };
17
+ export type postV1DeviceAuthorizeResponse200MultipartFormData = {
18
+ data: PostV1DeviceAuthorize200Two;
19
+ status: 200;
20
+ };
21
+ export type postV1DeviceAuthorizeResponse200TextPlain = {
22
+ data: PostV1DeviceAuthorize200Three;
23
+ status: 200;
24
+ };
25
+ export type postV1DeviceAuthorizeResponseSuccess = (postV1DeviceAuthorizeResponse200ApplicationJson | postV1DeviceAuthorizeResponse200MultipartFormData | postV1DeviceAuthorizeResponse200TextPlain) & {
26
+ headers: Headers;
27
+ };
28
+ export type postV1DeviceAuthorizeResponse = (postV1DeviceAuthorizeResponseSuccess);
29
+ export declare const getPostV1DeviceAuthorizeUrl: () => string;
30
+ export declare const postV1DeviceAuthorize: (postV1DeviceAuthorizeBody: PostV1DeviceAuthorizeBodyOne | PostV1DeviceAuthorizeBodyTwo | PostV1DeviceAuthorizeBodyThree, options?: RequestInit) => Promise<postV1DeviceAuthorizeResponse>;
31
+ /**
32
+ * Poll this endpoint to check if the user has authorized the device. Returns the API key once authorized.
33
+ * @summary Poll for device authorization result
34
+ */
35
+ export type getV1DeviceTokenResponse200 = {
36
+ data: void;
37
+ status: 200;
38
+ };
39
+ export type getV1DeviceTokenResponseSuccess = (getV1DeviceTokenResponse200) & {
40
+ headers: Headers;
41
+ };
42
+ export type getV1DeviceTokenResponse = (getV1DeviceTokenResponseSuccess);
43
+ export declare const getGetV1DeviceTokenUrl: (params: GetV1DeviceTokenParams) => string;
44
+ export declare const getV1DeviceToken: (params: GetV1DeviceTokenParams, options?: RequestInit) => Promise<getV1DeviceTokenResponse>;
45
+ //# sourceMappingURL=device-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device-auth.d.ts","sourceRoot":"","sources":["../../../src/generated/device-auth/device-auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2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