zorihq 0.10.1 → 0.11.1

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 (125) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +13 -20
  3. package/package.json +1 -1
  4. package/resources/v1/auth.d.mts +33 -0
  5. package/resources/v1/auth.d.mts.map +1 -0
  6. package/resources/v1/auth.d.ts +33 -0
  7. package/resources/v1/auth.d.ts.map +1 -0
  8. package/resources/v1/auth.js +23 -0
  9. package/resources/v1/auth.js.map +1 -0
  10. package/resources/v1/auth.mjs +19 -0
  11. package/resources/v1/auth.mjs.map +1 -0
  12. package/resources/v1/index.d.mts +2 -1
  13. package/resources/v1/index.d.mts.map +1 -1
  14. package/resources/v1/index.d.ts +2 -1
  15. package/resources/v1/index.d.ts.map +1 -1
  16. package/resources/v1/index.js +7 -5
  17. package/resources/v1/index.js.map +1 -1
  18. package/resources/v1/index.mjs +2 -1
  19. package/resources/v1/index.mjs.map +1 -1
  20. package/resources/v1/payment-providers/index.d.mts +3 -0
  21. package/resources/v1/payment-providers/index.d.mts.map +1 -0
  22. package/resources/v1/payment-providers/index.d.ts +3 -0
  23. package/resources/v1/payment-providers/index.d.ts.map +1 -0
  24. package/resources/v1/payment-providers/index.js +9 -0
  25. package/resources/v1/payment-providers/index.js.map +1 -0
  26. package/resources/v1/payment-providers/index.mjs +4 -0
  27. package/resources/v1/payment-providers/index.mjs.map +1 -0
  28. package/resources/v1/payment-providers/payment-providers.d.mts +154 -0
  29. package/resources/v1/payment-providers/payment-providers.d.mts.map +1 -0
  30. package/resources/v1/payment-providers/payment-providers.d.ts +154 -0
  31. package/resources/v1/payment-providers/payment-providers.d.ts.map +1 -0
  32. package/resources/v1/payment-providers/payment-providers.js +98 -0
  33. package/resources/v1/payment-providers/payment-providers.js.map +1 -0
  34. package/resources/v1/payment-providers/payment-providers.mjs +93 -0
  35. package/resources/v1/payment-providers/payment-providers.mjs.map +1 -0
  36. package/resources/v1/payment-providers/stripe/app.d.mts +39 -0
  37. package/resources/v1/payment-providers/stripe/app.d.mts.map +1 -0
  38. package/resources/v1/payment-providers/stripe/app.d.ts +39 -0
  39. package/resources/v1/payment-providers/stripe/app.d.ts.map +1 -0
  40. package/resources/v1/payment-providers/stripe/app.js +24 -0
  41. package/resources/v1/payment-providers/stripe/app.js.map +1 -0
  42. package/resources/v1/payment-providers/stripe/app.mjs +20 -0
  43. package/resources/v1/payment-providers/stripe/app.mjs.map +1 -0
  44. package/resources/v1/payment-providers/stripe/index.d.mts +3 -0
  45. package/resources/v1/payment-providers/stripe/index.d.mts.map +1 -0
  46. package/resources/v1/payment-providers/stripe/index.d.ts +3 -0
  47. package/resources/v1/payment-providers/stripe/index.d.ts.map +1 -0
  48. package/resources/v1/payment-providers/stripe/index.js +9 -0
  49. package/resources/v1/payment-providers/stripe/index.js.map +1 -0
  50. package/resources/v1/payment-providers/stripe/index.mjs +4 -0
  51. package/resources/v1/payment-providers/stripe/index.mjs.map +1 -0
  52. package/resources/v1/payment-providers/stripe/stripe.d.mts +10 -0
  53. package/resources/v1/payment-providers/stripe/stripe.d.mts.map +1 -0
  54. package/resources/v1/payment-providers/stripe/stripe.d.ts +10 -0
  55. package/resources/v1/payment-providers/stripe/stripe.d.ts.map +1 -0
  56. package/resources/v1/payment-providers/stripe/stripe.js +17 -0
  57. package/resources/v1/payment-providers/stripe/stripe.js.map +1 -0
  58. package/resources/v1/payment-providers/stripe/stripe.mjs +12 -0
  59. package/resources/v1/payment-providers/stripe/stripe.mjs.map +1 -0
  60. package/resources/v1/payment-providers/stripe.d.mts +2 -0
  61. package/resources/v1/payment-providers/stripe.d.mts.map +1 -0
  62. package/resources/v1/payment-providers/stripe.d.ts +2 -0
  63. package/resources/v1/payment-providers/stripe.d.ts.map +1 -0
  64. package/resources/v1/payment-providers/stripe.js +6 -0
  65. package/resources/v1/payment-providers/stripe.js.map +1 -0
  66. package/resources/v1/payment-providers/stripe.mjs +3 -0
  67. package/resources/v1/payment-providers/stripe.mjs.map +1 -0
  68. package/resources/v1/payment-providers.d.mts +1 -149
  69. package/resources/v1/payment-providers.d.mts.map +1 -1
  70. package/resources/v1/payment-providers.d.ts +1 -149
  71. package/resources/v1/payment-providers.d.ts.map +1 -1
  72. package/resources/v1/payment-providers.js +2 -86
  73. package/resources/v1/payment-providers.js.map +1 -1
  74. package/resources/v1/payment-providers.mjs +1 -84
  75. package/resources/v1/payment-providers.mjs.map +1 -1
  76. package/resources/v1/revenue/cohort.d.mts +84 -0
  77. package/resources/v1/revenue/cohort.d.mts.map +1 -0
  78. package/resources/v1/revenue/cohort.d.ts +84 -0
  79. package/resources/v1/revenue/cohort.d.ts.map +1 -0
  80. package/resources/v1/revenue/cohort.js +24 -0
  81. package/resources/v1/revenue/cohort.js.map +1 -0
  82. package/resources/v1/revenue/cohort.mjs +20 -0
  83. package/resources/v1/revenue/cohort.mjs.map +1 -0
  84. package/resources/v1/revenue/index.d.mts +1 -0
  85. package/resources/v1/revenue/index.d.mts.map +1 -1
  86. package/resources/v1/revenue/index.d.ts +1 -0
  87. package/resources/v1/revenue/index.d.ts.map +1 -1
  88. package/resources/v1/revenue/index.js +3 -1
  89. package/resources/v1/revenue/index.js.map +1 -1
  90. package/resources/v1/revenue/index.mjs +1 -0
  91. package/resources/v1/revenue/index.mjs.map +1 -1
  92. package/resources/v1/revenue/revenue.d.mts +15 -0
  93. package/resources/v1/revenue/revenue.d.mts.map +1 -1
  94. package/resources/v1/revenue/revenue.d.ts +15 -0
  95. package/resources/v1/revenue/revenue.d.ts.map +1 -1
  96. package/resources/v1/revenue/revenue.js +4 -0
  97. package/resources/v1/revenue/revenue.js.map +1 -1
  98. package/resources/v1/revenue/revenue.mjs +4 -0
  99. package/resources/v1/revenue/revenue.mjs.map +1 -1
  100. package/resources/v1/v1.d.mts +6 -2
  101. package/resources/v1/v1.d.mts.map +1 -1
  102. package/resources/v1/v1.d.ts +6 -2
  103. package/resources/v1/v1.d.ts.map +1 -1
  104. package/resources/v1/v1.js +6 -2
  105. package/resources/v1/v1.js.map +1 -1
  106. package/resources/v1/v1.mjs +6 -2
  107. package/resources/v1/v1.mjs.map +1 -1
  108. package/src/resources/v1/auth.ts +48 -0
  109. package/src/resources/v1/index.ts +2 -1
  110. package/src/resources/v1/payment-providers/index.ts +17 -0
  111. package/src/resources/v1/payment-providers/payment-providers.ts +238 -0
  112. package/src/resources/v1/payment-providers/stripe/app.ts +56 -0
  113. package/src/resources/v1/payment-providers/stripe/index.ts +4 -0
  114. package/src/resources/v1/payment-providers/stripe/stripe.ts +19 -0
  115. package/src/resources/v1/payment-providers/stripe.ts +3 -0
  116. package/src/resources/v1/payment-providers.ts +1 -228
  117. package/src/resources/v1/revenue/cohort.ts +111 -0
  118. package/src/resources/v1/revenue/index.ts +1 -0
  119. package/src/resources/v1/revenue/revenue.ts +23 -0
  120. package/src/resources/v1/v1.ts +26 -15
  121. package/src/version.ts +1 -1
  122. package/version.d.mts +1 -1
  123. package/version.d.ts +1 -1
  124. package/version.js +1 -1
  125. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.1 (2025-11-02)
4
+
5
+ Full Changelog: [v0.11.0...v0.11.1](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.11.0...v0.11.1)
6
+
7
+ ## 0.11.0 (2025-10-30)
8
+
9
+ Full Changelog: [v0.10.1...v0.11.0](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.10.1...v0.11.0)
10
+
11
+ ### Features
12
+
13
+ * **auth:** added OSS auth endpoint ([3a6d79d](https://github.com/ZoriHQ/typescript-api-sdk/commit/3a6d79df9e517f79200fe08cb83a46b845b76fc4))
14
+
3
15
  ## 0.10.1 (2025-10-29)
4
16
 
5
17
  Full Changelog: [v0.10.0...v0.10.1](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.10.0...v0.10.1)
package/README.md CHANGED
@@ -26,12 +26,9 @@ const client = new Zoriapi({
26
26
  apiKey: process.env['ZORIAPI_API_KEY'], // This is the default and can be omitted
27
27
  });
28
28
 
29
- const dashboardMetricsResponse = await client.v1.analytics.dashboard({
30
- project_id: 'project_id',
31
- time_range: 'last_hour',
32
- });
29
+ const loginResponse = await client.v1.auth.login({ password: 'password', username: 'username' });
33
30
 
34
- console.log(dashboardMetricsResponse.avg_pages_per_session);
31
+ console.log(loginResponse.org_id);
35
32
  ```
36
33
 
37
34
  ### Request & Response types
@@ -46,10 +43,8 @@ const client = new Zoriapi({
46
43
  apiKey: process.env['ZORIAPI_API_KEY'], // This is the default and can be omitted
47
44
  });
48
45
 
49
- const params: Zoriapi.V1.AnalyticsDashboardParams = { project_id: 'project_id', time_range: 'last_hour' };
50
- const dashboardMetricsResponse: Zoriapi.V1.DashboardMetricsResponse = await client.v1.analytics.dashboard(
51
- params,
52
- );
46
+ const params: Zoriapi.V1.AuthLoginParams = { password: 'password', username: 'username' };
47
+ const loginResponse: Zoriapi.V1.LoginResponse = await client.v1.auth.login(params);
53
48
  ```
54
49
 
55
50
  Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
@@ -62,8 +57,8 @@ a subclass of `APIError` will be thrown:
62
57
 
63
58
  <!-- prettier-ignore -->
64
59
  ```ts
65
- const dashboardMetricsResponse = await client.v1.analytics
66
- .dashboard({ project_id: 'project_id', time_range: 'last_hour' })
60
+ const loginResponse = await client.v1.auth
61
+ .login({ password: 'password', username: 'username' })
67
62
  .catch(async (err) => {
68
63
  if (err instanceof Zoriapi.APIError) {
69
64
  console.log(err.status); // 400
@@ -104,7 +99,7 @@ const client = new Zoriapi({
104
99
  });
105
100
 
106
101
  // Or, configure per-request:
107
- await client.v1.analytics.dashboard({ project_id: 'project_id', time_range: 'last_hour' }, {
102
+ await client.v1.auth.login({ password: 'password', username: 'username' }, {
108
103
  maxRetries: 5,
109
104
  });
110
105
  ```
@@ -121,7 +116,7 @@ const client = new Zoriapi({
121
116
  });
122
117
 
123
118
  // Override per-request:
124
- await client.v1.analytics.dashboard({ project_id: 'project_id', time_range: 'last_hour' }, {
119
+ await client.v1.auth.login({ password: 'password', username: 'username' }, {
125
120
  timeout: 5 * 1000,
126
121
  });
127
122
  ```
@@ -144,17 +139,15 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
144
139
  ```ts
145
140
  const client = new Zoriapi();
146
141
 
147
- const response = await client.v1.analytics
148
- .dashboard({ project_id: 'project_id', time_range: 'last_hour' })
149
- .asResponse();
142
+ const response = await client.v1.auth.login({ password: 'password', username: 'username' }).asResponse();
150
143
  console.log(response.headers.get('X-My-Header'));
151
144
  console.log(response.statusText); // access the underlying Response object
152
145
 
153
- const { data: dashboardMetricsResponse, response: raw } = await client.v1.analytics
154
- .dashboard({ project_id: 'project_id', time_range: 'last_hour' })
146
+ const { data: loginResponse, response: raw } = await client.v1.auth
147
+ .login({ password: 'password', username: 'username' })
155
148
  .withResponse();
156
149
  console.log(raw.headers.get('X-My-Header'));
157
- console.log(dashboardMetricsResponse.avg_pages_per_session);
150
+ console.log(loginResponse.org_id);
158
151
  ```
159
152
 
160
153
  ### Logging
@@ -234,7 +227,7 @@ parameter. This library doesn't validate at runtime that the request matches the
234
227
  send will be sent as-is.
235
228
 
236
229
  ```ts
237
- client.v1.analytics.dashboard({
230
+ client.v1.auth.login({
238
231
  // ...
239
232
  // @ts-expect-error baz is not yet public
240
233
  baz: 'undocumented option',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zorihq",
3
- "version": "0.10.1",
3
+ "version": "0.11.1",
4
4
  "description": "The official TypeScript library for the Zoriapi API",
5
5
  "author": "Zoriapi <support@zorihq.com>",
6
6
  "types": "./index.d.ts",
@@ -0,0 +1,33 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Auth extends APIResource {
5
+ /**
6
+ * Authenticate with admin credentials and receive a JWT token (OSS mode only)
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const loginResponse = await client.v1.auth.login({
11
+ * password: 'password',
12
+ * username: 'username',
13
+ * });
14
+ * ```
15
+ */
16
+ login(body: AuthLoginParams, options?: RequestOptions): APIPromise<LoginResponse>;
17
+ }
18
+ export interface LoginRequest {
19
+ password: string;
20
+ username: string;
21
+ }
22
+ export interface LoginResponse {
23
+ token?: string;
24
+ org_id?: string;
25
+ }
26
+ export interface AuthLoginParams {
27
+ password: string;
28
+ username: string;
29
+ }
30
+ export declare namespace Auth {
31
+ export { type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type AuthLoginParams as AuthLoginParams, };
32
+ }
33
+ //# sourceMappingURL=auth.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAGlF;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -0,0 +1,33 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Auth extends APIResource {
5
+ /**
6
+ * Authenticate with admin credentials and receive a JWT token (OSS mode only)
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const loginResponse = await client.v1.auth.login({
11
+ * password: 'password',
12
+ * username: 'username',
13
+ * });
14
+ * ```
15
+ */
16
+ login(body: AuthLoginParams, options?: RequestOptions): APIPromise<LoginResponse>;
17
+ }
18
+ export interface LoginRequest {
19
+ password: string;
20
+ username: string;
21
+ }
22
+ export interface LoginResponse {
23
+ token?: string;
24
+ org_id?: string;
25
+ }
26
+ export interface AuthLoginParams {
27
+ password: string;
28
+ username: string;
29
+ }
30
+ export declare namespace Auth {
31
+ export { type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type AuthLoginParams as AuthLoginParams, };
32
+ }
33
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAGlF;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Auth = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ class Auth extends resource_1.APIResource {
7
+ /**
8
+ * Authenticate with admin credentials and receive a JWT token (OSS mode only)
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const loginResponse = await client.v1.auth.login({
13
+ * password: 'password',
14
+ * username: 'username',
15
+ * });
16
+ * ```
17
+ */
18
+ login(body, options) {
19
+ return this._client.post('/api/v1/auth/login', { body, ...options });
20
+ }
21
+ }
22
+ exports.Auth = Auth;
23
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAfD,oBAeC"}
@@ -0,0 +1,19 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Auth extends APIResource {
4
+ /**
5
+ * Authenticate with admin credentials and receive a JWT token (OSS mode only)
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const loginResponse = await client.v1.auth.login({
10
+ * password: 'password',
11
+ * username: 'username',
12
+ * });
13
+ * ```
14
+ */
15
+ login(body, options) {
16
+ return this._client.post('/api/v1/auth/login', { body, ...options });
17
+ }
18
+ }
19
+ //# sourceMappingURL=auth.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
1
  export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.mjs";
2
- export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type ProviderField, type ProviderInstructionsResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, type PaymentProviderInstructionsParams, } from "./payment-providers.mjs";
2
+ export { Auth, type LoginRequest, type LoginResponse, type AuthLoginParams } from "./auth.mjs";
3
+ export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type ProviderField, type ProviderInstructionsResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, type PaymentProviderInstructionsParams, } from "./payment-providers/index.mjs";
3
4
  export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.mjs";
4
5
  export { Revenue, type AttributionByOriginResponse, type AttributionByUtmResponse, type ConversionMetricsResponse, type CustomerProfileResponse, type DashboardResponse, type OriginAttributionDataPoint, type Payment, type RevenueOverTimeDataPoint, type TimelineDataPoint, type TimelineResponse, type TopCustomer, type TopCustomersResponse, type UtmAttributionDataPoint, type RevenueDashboardParams, type RevenueTimelineParams, } from "./revenue/index.mjs";
5
6
  export { V1 } from "./v1.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,K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KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE;OACrE,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
@@ -1,5 +1,6 @@
1
1
  export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.js";
2
- export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type ProviderField, type ProviderInstructionsResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, type PaymentProviderInstructionsParams, } from "./payment-providers.js";
2
+ export { Auth, type LoginRequest, type LoginResponse, type AuthLoginParams } from "./auth.js";
3
+ export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type ProviderField, type ProviderInstructionsResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, type PaymentProviderInstructionsParams, } from "./payment-providers/index.js";
3
4
  export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.js";
4
5
  export { Revenue, type AttributionByOriginResponse, type AttributionByUtmResponse, type ConversionMetricsResponse, type CustomerProfileResponse, type DashboardResponse, type OriginAttributionDataPoint, type Payment, type RevenueOverTimeDataPoint, type TimelineDataPoint, type TimelineResponse, type TopCustomer, type TopCustomersResponse, type UtmAttributionDataPoint, type RevenueDashboardParams, type RevenueTimelineParams, } from "./revenue/index.js";
5
6
  export { V1 } from "./v1.js";
@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vC;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.V1 = exports.Revenue = exports.Projects = exports.PaymentProviders = exports.Analytics = void 0;
4
+ exports.V1 = exports.Revenue = exports.Projects = exports.PaymentProviders = exports.Auth = exports.Analytics = void 0;
5
5
  var index_1 = require("./analytics/index.js");
6
6
  Object.defineProperty(exports, "Analytics", { enumerable: true, get: function () { return index_1.Analytics; } });
7
- var payment_providers_1 = require("./payment-providers.js");
8
- Object.defineProperty(exports, "PaymentProviders", { enumerable: true, get: function () { return payment_providers_1.PaymentProviders; } });
7
+ var auth_1 = require("./auth.js");
8
+ Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return auth_1.Auth; } });
9
+ var index_2 = require("./payment-providers/index.js");
10
+ Object.defineProperty(exports, "PaymentProviders", { enumerable: true, get: function () { return index_2.PaymentProviders; } });
9
11
  var projects_1 = require("./projects.js");
10
12
  Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
11
- var index_2 = require("./revenue/index.js");
12
- Object.defineProperty(exports, "Revenue", { enumerable: true, get: function () { return index_2.Revenue; } });
13
+ var index_3 = require("./revenue/index.js");
14
+ Object.defineProperty(exports, "Revenue", { enumerable: true, get: function () { return index_3.Revenue; } });
13
15
  var v1_1 = require("./v1.js");
14
16
  Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
15
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CA8B2B;AA7BzB,kGAAA,SAAS,OAAA;AA8BX,4DAa6B;AAZ3B,qHAAA,gBAAgB,OAAA;AAalB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,4CAiByB;AAhBvB,gGAAA,OAAO,OAAA;AAiBT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CA8B2B;AA7BzB,kGAAA,SAAS,OAAA;AA8BX,kCAA2F;AAAlF,4FAAA,IAAI,OAAA;AACb,sDAamC;AAZjC,yGAAA,gBAAgB,OAAA;AAalB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,4CAiByB;AAhBvB,gGAAA,OAAO,OAAA;AAiBT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Analytics, } from "./analytics/index.mjs";
3
- export { PaymentProviders, } from "./payment-providers.mjs";
3
+ export { Auth } from "./auth.mjs";
4
+ export { PaymentProviders, } from "./payment-providers/index.mjs";
4
5
  export { Projects, } from "./projects.mjs";
5
6
  export { Revenue, } from "./revenue/index.mjs";
6
7
  export { V1 } from "./v1.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GA6BV;OACM,EACL,gBAAgB,GAYjB;OACM,EACL,QAAQ,GAST;OACM,EACL,OAAO,GAgBR;OACM,EAAE,EAAE,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GA6BV;OACM,EAAE,IAAI,EAA+D;OACrE,EACL,gBAAgB,GAYjB;OACM,EACL,QAAQ,GAST;OACM,EACL,OAAO,GAgBR;OACM,EAAE,EAAE,EAAE"}
@@ -0,0 +1,3 @@
1
+ export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type ProviderField, type ProviderInstructionsResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, type PaymentProviderInstructionsParams, } from "./payment-providers.mjs";
2
+ export { Stripe } from "./stripe/index.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/payment-providers/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EAAE,MAAM,EAAE"}
@@ -0,0 +1,3 @@
1
+ export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type ProviderField, type ProviderInstructionsResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, type PaymentProviderInstructionsParams, } from "./payment-providers.js";
2
+ export { Stripe } from "./stripe/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/payment-providers/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EAAE,MAAM,EAAE"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Stripe = exports.PaymentProviders = void 0;
5
+ var payment_providers_1 = require("./payment-providers.js");
6
+ Object.defineProperty(exports, "PaymentProviders", { enumerable: true, get: function () { return payment_providers_1.PaymentProviders; } });
7
+ var index_1 = require("./stripe/index.js");
8
+ Object.defineProperty(exports, "Stripe", { enumerable: true, get: function () { return index_1.Stripe; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/payment-providers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAa6B;AAZ3B,qHAAA,gBAAgB,OAAA;AAalB,2CAAwC;AAA/B,+FAAA,MAAM,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { PaymentProviders, } from "./payment-providers.mjs";
3
+ export { Stripe } from "./stripe/index.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/payment-providers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gBAAgB,GAYjB;OACM,EAAE,MAAM,EAAE"}
@@ -0,0 +1,154 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as StripeAPI from "./stripe/stripe.mjs";
3
+ import { Stripe } from "./stripe/stripe.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { RequestOptions } from "../../../internal/request-options.mjs";
6
+ export declare class PaymentProviders extends APIResource {
7
+ stripe: StripeAPI.Stripe;
8
+ /**
9
+ * Connect a new payment provider to a project
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const paymentProviderResponse =
14
+ * await client.v1.paymentProviders.create({
15
+ * api_key: 'sk_test_xxxxx',
16
+ * project_id: '550e8400-e29b-41d4-a716-446655440000',
17
+ * provider_type: 'stripe',
18
+ * webhook_secret: 'whsec_xxxxx',
19
+ * });
20
+ * ```
21
+ */
22
+ create(body: PaymentProviderCreateParams, options?: RequestOptions): APIPromise<PaymentProviderResponse>;
23
+ /**
24
+ * Update payment provider credentials or settings
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const paymentProviderResponse =
29
+ * await client.v1.paymentProviders.update('id');
30
+ * ```
31
+ */
32
+ update(id: string, body: PaymentProviderUpdateParams, options?: RequestOptions): APIPromise<PaymentProviderResponse>;
33
+ /**
34
+ * Get all payment providers for the organization
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const listPaymentProvidersResponse =
39
+ * await client.v1.paymentProviders.list();
40
+ * ```
41
+ */
42
+ list(query?: PaymentProviderListParams | null | undefined, options?: RequestOptions): APIPromise<ListPaymentProvidersResponse>;
43
+ /**
44
+ * Disconnect a payment provider from a project
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const paymentProvider =
49
+ * await client.v1.paymentProviders.delete('id');
50
+ * ```
51
+ */
52
+ delete(id: string, options?: RequestOptions): APIPromise<PaymentProviderDeleteResponse>;
53
+ /**
54
+ * Get a single payment provider by ID
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const paymentProviderResponse =
59
+ * await client.v1.paymentProviders.get('id');
60
+ * ```
61
+ */
62
+ get(id: string, options?: RequestOptions): APIPromise<PaymentProviderResponse>;
63
+ /**
64
+ * Get instructions for connecting a payment provider (OAuth URL or manual
65
+ * credentials)
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const providerInstructionsResponse =
70
+ * await client.v1.paymentProviders.instructions({
71
+ * provider_type: 'stripe',
72
+ * });
73
+ * ```
74
+ */
75
+ instructions(query: PaymentProviderInstructionsParams, options?: RequestOptions): APIPromise<ProviderInstructionsResponse>;
76
+ }
77
+ export interface CreatePaymentProviderRequest {
78
+ api_key: string;
79
+ project_id: string;
80
+ provider_type: 'stripe' | 'paddle' | 'paypal' | 'lemon_squeezy' | 'square';
81
+ webhook_secret: string;
82
+ }
83
+ export interface ListPaymentProvidersResponse {
84
+ providers?: Array<PaymentProviderResponse>;
85
+ total?: number;
86
+ }
87
+ export interface PaymentProviderResponse {
88
+ id?: string;
89
+ created_at?: string;
90
+ is_active?: boolean;
91
+ last_synced_at?: string;
92
+ organization_id?: string;
93
+ project_id?: string;
94
+ provider_type?: 'stripe' | 'paddle' | 'paypal' | 'lemon_squeezy' | 'square';
95
+ updated_at?: string;
96
+ }
97
+ export interface ProviderField {
98
+ help_text?: string;
99
+ label?: string;
100
+ name?: string;
101
+ placeholder?: string;
102
+ required?: boolean;
103
+ type?: string;
104
+ }
105
+ export interface ProviderInstructionsResponse {
106
+ /**
107
+ * "oauth" or "manual"
108
+ */
109
+ connection_method?: string;
110
+ fields?: Array<ProviderField>;
111
+ instructions?: string;
112
+ oauth_url?: string;
113
+ provider_type?: 'stripe' | 'paddle' | 'paypal' | 'lemon_squeezy' | 'square';
114
+ }
115
+ export interface UpdatePaymentProviderRequest {
116
+ api_key?: string;
117
+ is_active?: boolean;
118
+ webhook_secret?: string;
119
+ }
120
+ export type PaymentProviderDeleteResponse = {
121
+ [key: string]: string;
122
+ };
123
+ export interface PaymentProviderCreateParams {
124
+ api_key: string;
125
+ project_id: string;
126
+ provider_type: 'stripe' | 'paddle' | 'paypal' | 'lemon_squeezy' | 'square';
127
+ webhook_secret: string;
128
+ }
129
+ export interface PaymentProviderUpdateParams {
130
+ api_key?: string;
131
+ is_active?: boolean;
132
+ webhook_secret?: string;
133
+ }
134
+ export interface PaymentProviderListParams {
135
+ /**
136
+ * Filter by project ID
137
+ */
138
+ project_id?: string;
139
+ }
140
+ export interface PaymentProviderInstructionsParams {
141
+ /**
142
+ * Provider type
143
+ */
144
+ provider_type: 'stripe' | 'paddle' | 'paypal' | 'lemon_squeezy' | 'square';
145
+ /**
146
+ * Project ID (required for Stripe Connect)
147
+ */
148
+ project_id?: string;
149
+ }
150
+ export declare namespace PaymentProviders {
151
+ export { type CreatePaymentProviderRequest as CreatePaymentProviderRequest, type ListPaymentProvidersResponse as ListPaymentProvidersResponse, type PaymentProviderResponse as PaymentProviderResponse, type ProviderField as ProviderField, type ProviderInstructionsResponse as ProviderInstructionsResponse, type UpdatePaymentProviderRequest as UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse as PaymentProviderDeleteResponse, type PaymentProviderCreateParams as PaymentProviderCreateParams, type PaymentProviderUpdateParams as PaymentProviderUpdateParams, type PaymentProviderListParams as PaymentProviderListParams, type PaymentProviderInstructionsParams as PaymentProviderInstructionsParams, };
152
+ export { Stripe as Stripe };
153
+ }
154
+ //# sourceMappingURL=payment-providers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-providers.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/payment-providers/payment-providers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,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