@channel.io/app-sdk-core 0.7.3 → 0.9.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.
- package/dist/extensions/apikey.d.ts +2 -2
- package/dist/extensions/calendar.d.ts +4 -4
- package/dist/extensions/config.d.ts +6439 -753
- package/dist/extensions/config.d.ts.map +1 -1
- package/dist/extensions/config.js +29 -3
- package/dist/extensions/config.js.map +1 -1
- package/dist/extensions/index.d.ts +3 -2
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +4 -2
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/interfaces/config.d.ts +11 -4
- package/dist/extensions/interfaces/config.d.ts.map +1 -1
- package/dist/extensions/interfaces/config.js.map +1 -1
- package/dist/extensions/interfaces/index.d.ts +1 -0
- package/dist/extensions/interfaces/index.d.ts.map +1 -1
- package/dist/extensions/interfaces/index.js +1 -0
- package/dist/extensions/interfaces/index.js.map +1 -1
- package/dist/extensions/interfaces/messaging.d.ts +36 -0
- package/dist/extensions/interfaces/messaging.d.ts.map +1 -0
- package/dist/extensions/interfaces/messaging.js +18 -0
- package/dist/extensions/interfaces/messaging.js.map +1 -0
- package/dist/extensions/interfaces/oauth.d.ts +19 -12
- package/dist/extensions/interfaces/oauth.d.ts.map +1 -1
- package/dist/extensions/interfaces/oauth.js.map +1 -1
- package/dist/extensions/messaging.d.ts +11248 -0
- package/dist/extensions/messaging.d.ts.map +1 -0
- package/dist/extensions/messaging.js +482 -0
- package/dist/extensions/messaging.js.map +1 -0
- package/dist/extensions/oauth.d.ts +137 -5
- package/dist/extensions/oauth.d.ts.map +1 -1
- package/dist/extensions/oauth.js +38 -4
- package/dist/extensions/oauth.js.map +1 -1
- package/dist/extensions/order.d.ts +8 -8
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/native.d.ts +722 -0
- package/dist/types/native.d.ts.map +1 -0
- package/dist/types/native.js +2 -0
- package/dist/types/native.js.map +1 -0
- package/package.json +1 -1
|
@@ -9,14 +9,25 @@ import { z } from "zod";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const ParameterCaseSchema: z.ZodEnum<["snake", "camel"]>;
|
|
11
11
|
export type ParameterCase = z.infer<typeof ParameterCaseSchema>;
|
|
12
|
+
export declare const TokenRequestContentTypeSchema: z.ZodEnum<["form", "json"]>;
|
|
13
|
+
export type TokenRequestContentType = z.infer<typeof TokenRequestContentTypeSchema>;
|
|
14
|
+
export declare const OAuthAuthScopeSchema: z.ZodEnum<["channel", "manager"]>;
|
|
15
|
+
export type OAuthAuthScope = z.infer<typeof OAuthAuthScopeSchema>;
|
|
12
16
|
/**
|
|
13
|
-
* OAuth 2.0
|
|
17
|
+
* OAuth 2.0 provider metadata returned from metadata.getAuthConfig.
|
|
18
|
+
*
|
|
19
|
+
* Client credentials are intentionally excluded. AppStore stores and manages
|
|
20
|
+
* provider client ID/secret separately through Desk APIs/UI.
|
|
14
21
|
*/
|
|
15
|
-
export declare const
|
|
22
|
+
export declare const OAuthProviderSchema: z.ZodObject<{
|
|
23
|
+
provider: z.ZodString;
|
|
16
24
|
authorizationUrl: z.ZodString;
|
|
17
25
|
tokenUrl: z.ZodString;
|
|
26
|
+
refreshTokenUrl: z.ZodOptional<z.ZodString>;
|
|
18
27
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
19
|
-
|
|
28
|
+
providerName: z.ZodString;
|
|
29
|
+
providerDescription: z.ZodOptional<z.ZodString>;
|
|
30
|
+
providerIconUrl: z.ZodOptional<z.ZodString>;
|
|
20
31
|
pkceRequired: z.ZodOptional<z.ZodBoolean>;
|
|
21
32
|
additionalParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22
33
|
/**
|
|
@@ -25,24 +36,145 @@ export declare const OAuthConfigSchema: z.ZodObject<{
|
|
|
25
36
|
* on the authorize URL and token endpoint.
|
|
26
37
|
*/
|
|
27
38
|
parameterCase: z.ZodOptional<z.ZodEnum<["snake", "camel"]>>;
|
|
39
|
+
/**
|
|
40
|
+
* Token endpoint request body format. Defaults to `"form"` for RFC 6749
|
|
41
|
+
* providers, but some providers expect JSON bodies.
|
|
42
|
+
*/
|
|
43
|
+
tokenRequestContentType: z.ZodOptional<z.ZodEnum<["form", "json"]>>;
|
|
28
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
provider: string;
|
|
29
46
|
authorizationUrl: string;
|
|
30
47
|
tokenUrl: string;
|
|
31
48
|
scopes: string[];
|
|
32
|
-
|
|
49
|
+
providerName: string;
|
|
50
|
+
refreshTokenUrl?: string | undefined;
|
|
51
|
+
providerDescription?: string | undefined;
|
|
52
|
+
providerIconUrl?: string | undefined;
|
|
33
53
|
pkceRequired?: boolean | undefined;
|
|
34
54
|
additionalParams?: Record<string, string> | undefined;
|
|
35
55
|
parameterCase?: "snake" | "camel" | undefined;
|
|
56
|
+
tokenRequestContentType?: "form" | "json" | undefined;
|
|
36
57
|
}, {
|
|
58
|
+
provider: string;
|
|
37
59
|
authorizationUrl: string;
|
|
38
60
|
tokenUrl: string;
|
|
39
61
|
scopes: string[];
|
|
40
|
-
|
|
62
|
+
providerName: string;
|
|
63
|
+
refreshTokenUrl?: string | undefined;
|
|
64
|
+
providerDescription?: string | undefined;
|
|
65
|
+
providerIconUrl?: string | undefined;
|
|
41
66
|
pkceRequired?: boolean | undefined;
|
|
42
67
|
additionalParams?: Record<string, string> | undefined;
|
|
43
68
|
parameterCase?: "snake" | "camel" | undefined;
|
|
69
|
+
tokenRequestContentType?: "form" | "json" | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type OAuthProvider = z.infer<typeof OAuthProviderSchema>;
|
|
72
|
+
/**
|
|
73
|
+
* Output schema for extension.oauth.metadata.getAuthConfig.
|
|
74
|
+
*/
|
|
75
|
+
export declare const OAuthConfigSchema: z.ZodObject<{
|
|
76
|
+
authType: z.ZodLiteral<"oauth">;
|
|
77
|
+
authScope: z.ZodEnum<["channel", "manager"]>;
|
|
78
|
+
oauthProvider: z.ZodObject<{
|
|
79
|
+
provider: z.ZodString;
|
|
80
|
+
authorizationUrl: z.ZodString;
|
|
81
|
+
tokenUrl: z.ZodString;
|
|
82
|
+
refreshTokenUrl: z.ZodOptional<z.ZodString>;
|
|
83
|
+
scopes: z.ZodArray<z.ZodString, "many">;
|
|
84
|
+
providerName: z.ZodString;
|
|
85
|
+
providerDescription: z.ZodOptional<z.ZodString>;
|
|
86
|
+
providerIconUrl: z.ZodOptional<z.ZodString>;
|
|
87
|
+
pkceRequired: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
additionalParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
89
|
+
/**
|
|
90
|
+
* OAuth standard parameter naming convention. Defaults to `"snake"` (RFC 6749).
|
|
91
|
+
* Declare `"camel"` when the provider (e.g. Imweb) requires camelCase keys
|
|
92
|
+
* on the authorize URL and token endpoint.
|
|
93
|
+
*/
|
|
94
|
+
parameterCase: z.ZodOptional<z.ZodEnum<["snake", "camel"]>>;
|
|
95
|
+
/**
|
|
96
|
+
* Token endpoint request body format. Defaults to `"form"` for RFC 6749
|
|
97
|
+
* providers, but some providers expect JSON bodies.
|
|
98
|
+
*/
|
|
99
|
+
tokenRequestContentType: z.ZodOptional<z.ZodEnum<["form", "json"]>>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
provider: string;
|
|
102
|
+
authorizationUrl: string;
|
|
103
|
+
tokenUrl: string;
|
|
104
|
+
scopes: string[];
|
|
105
|
+
providerName: string;
|
|
106
|
+
refreshTokenUrl?: string | undefined;
|
|
107
|
+
providerDescription?: string | undefined;
|
|
108
|
+
providerIconUrl?: string | undefined;
|
|
109
|
+
pkceRequired?: boolean | undefined;
|
|
110
|
+
additionalParams?: Record<string, string> | undefined;
|
|
111
|
+
parameterCase?: "snake" | "camel" | undefined;
|
|
112
|
+
tokenRequestContentType?: "form" | "json" | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
provider: string;
|
|
115
|
+
authorizationUrl: string;
|
|
116
|
+
tokenUrl: string;
|
|
117
|
+
scopes: string[];
|
|
118
|
+
providerName: string;
|
|
119
|
+
refreshTokenUrl?: string | undefined;
|
|
120
|
+
providerDescription?: string | undefined;
|
|
121
|
+
providerIconUrl?: string | undefined;
|
|
122
|
+
pkceRequired?: boolean | undefined;
|
|
123
|
+
additionalParams?: Record<string, string> | undefined;
|
|
124
|
+
parameterCase?: "snake" | "camel" | undefined;
|
|
125
|
+
tokenRequestContentType?: "form" | "json" | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
authType: "oauth";
|
|
129
|
+
authScope: "manager" | "channel";
|
|
130
|
+
oauthProvider: {
|
|
131
|
+
provider: string;
|
|
132
|
+
authorizationUrl: string;
|
|
133
|
+
tokenUrl: string;
|
|
134
|
+
scopes: string[];
|
|
135
|
+
providerName: string;
|
|
136
|
+
refreshTokenUrl?: string | undefined;
|
|
137
|
+
providerDescription?: string | undefined;
|
|
138
|
+
providerIconUrl?: string | undefined;
|
|
139
|
+
pkceRequired?: boolean | undefined;
|
|
140
|
+
additionalParams?: Record<string, string> | undefined;
|
|
141
|
+
parameterCase?: "snake" | "camel" | undefined;
|
|
142
|
+
tokenRequestContentType?: "form" | "json" | undefined;
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
authType: "oauth";
|
|
146
|
+
authScope: "manager" | "channel";
|
|
147
|
+
oauthProvider: {
|
|
148
|
+
provider: string;
|
|
149
|
+
authorizationUrl: string;
|
|
150
|
+
tokenUrl: string;
|
|
151
|
+
scopes: string[];
|
|
152
|
+
providerName: string;
|
|
153
|
+
refreshTokenUrl?: string | undefined;
|
|
154
|
+
providerDescription?: string | undefined;
|
|
155
|
+
providerIconUrl?: string | undefined;
|
|
156
|
+
pkceRequired?: boolean | undefined;
|
|
157
|
+
additionalParams?: Record<string, string> | undefined;
|
|
158
|
+
parameterCase?: "snake" | "camel" | undefined;
|
|
159
|
+
tokenRequestContentType?: "form" | "json" | undefined;
|
|
160
|
+
};
|
|
44
161
|
}>;
|
|
45
162
|
export type OAuthConfig = z.infer<typeof OAuthConfigSchema>;
|
|
163
|
+
/**
|
|
164
|
+
* Input schema for extension.oauth.validation.validateCredentials.
|
|
165
|
+
*
|
|
166
|
+
* AppStore calls this with an empty params object after token exchange and
|
|
167
|
+
* injects the decrypted access token into context.authToken. accessToken is
|
|
168
|
+
* kept optional for local test harnesses and older examples.
|
|
169
|
+
*/
|
|
170
|
+
export declare const CredentialValidationInputSchema: z.ZodObject<{
|
|
171
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
172
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
173
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
174
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
175
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
177
|
+
export type CredentialValidationInput = z.infer<typeof CredentialValidationInputSchema>;
|
|
46
178
|
/**
|
|
47
179
|
* Credential validation result schema
|
|
48
180
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/extensions/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,+BAA6B,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/extensions/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MA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|
|
|
8
8
|
* Required by some tenant-aware providers such as Imweb. Applies to both authorize URL and token endpoint.
|
|
9
9
|
*/
|
|
10
10
|
export const ParameterCaseSchema = z.enum(["snake", "camel"]);
|
|
11
|
+
export const TokenRequestContentTypeSchema = z.enum(["form", "json"]);
|
|
12
|
+
export const OAuthAuthScopeSchema = z.enum(["channel", "manager"]);
|
|
11
13
|
/**
|
|
12
|
-
* OAuth 2.0
|
|
14
|
+
* OAuth 2.0 provider metadata returned from metadata.getAuthConfig.
|
|
15
|
+
*
|
|
16
|
+
* Client credentials are intentionally excluded. AppStore stores and manages
|
|
17
|
+
* provider client ID/secret separately through Desk APIs/UI.
|
|
13
18
|
*/
|
|
14
|
-
export const
|
|
19
|
+
export const OAuthProviderSchema = z.object({
|
|
20
|
+
provider: z.string().min(1),
|
|
15
21
|
authorizationUrl: z.string().url(),
|
|
16
22
|
tokenUrl: z.string().url(),
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
refreshTokenUrl: z.string().url().optional(),
|
|
24
|
+
scopes: z.array(z.string()).min(1),
|
|
25
|
+
providerName: z.string().min(1),
|
|
26
|
+
providerDescription: z.string().optional(),
|
|
27
|
+
providerIconUrl: z.string().url().optional(),
|
|
19
28
|
pkceRequired: z.boolean().optional(),
|
|
20
29
|
additionalParams: z.record(z.string()).optional(),
|
|
21
30
|
/**
|
|
@@ -24,7 +33,32 @@ export const OAuthConfigSchema = z.object({
|
|
|
24
33
|
* on the authorize URL and token endpoint.
|
|
25
34
|
*/
|
|
26
35
|
parameterCase: ParameterCaseSchema.optional(),
|
|
36
|
+
/**
|
|
37
|
+
* Token endpoint request body format. Defaults to `"form"` for RFC 6749
|
|
38
|
+
* providers, but some providers expect JSON bodies.
|
|
39
|
+
*/
|
|
40
|
+
tokenRequestContentType: TokenRequestContentTypeSchema.optional(),
|
|
27
41
|
});
|
|
42
|
+
/**
|
|
43
|
+
* Output schema for extension.oauth.metadata.getAuthConfig.
|
|
44
|
+
*/
|
|
45
|
+
export const OAuthConfigSchema = z.object({
|
|
46
|
+
authType: z.literal("oauth"),
|
|
47
|
+
authScope: OAuthAuthScopeSchema,
|
|
48
|
+
oauthProvider: OAuthProviderSchema,
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* Input schema for extension.oauth.validation.validateCredentials.
|
|
52
|
+
*
|
|
53
|
+
* AppStore calls this with an empty params object after token exchange and
|
|
54
|
+
* injects the decrypted access token into context.authToken. accessToken is
|
|
55
|
+
* kept optional for local test harnesses and older examples.
|
|
56
|
+
*/
|
|
57
|
+
export const CredentialValidationInputSchema = z
|
|
58
|
+
.object({
|
|
59
|
+
accessToken: z.string().optional(),
|
|
60
|
+
})
|
|
61
|
+
.passthrough();
|
|
28
62
|
/**
|
|
29
63
|
* Credential validation result schema
|
|
30
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../src/extensions/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAG9D
|
|
1
|
+
{"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../src/extensions/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAG9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAGtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,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A+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,WAAW,EAAE,CAAC;AAIjB;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -143,8 +143,8 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
143
143
|
shippingAddressChangeable: boolean;
|
|
144
144
|
}>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
name: string;
|
|
147
146
|
id: string;
|
|
147
|
+
name: string;
|
|
148
148
|
state: string;
|
|
149
149
|
amount: number;
|
|
150
150
|
quantity: number;
|
|
@@ -162,8 +162,8 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
162
162
|
deliveredAt?: number | undefined;
|
|
163
163
|
estimatedShipDate?: number | undefined;
|
|
164
164
|
}, {
|
|
165
|
-
name: string;
|
|
166
165
|
id: string;
|
|
166
|
+
name: string;
|
|
167
167
|
state: string;
|
|
168
168
|
amount: number;
|
|
169
169
|
quantity: number;
|
|
@@ -271,8 +271,8 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
271
271
|
shippingAddressChangeable: boolean;
|
|
272
272
|
}>;
|
|
273
273
|
}, "strip", z.ZodTypeAny, {
|
|
274
|
-
name: string;
|
|
275
274
|
id: string;
|
|
275
|
+
name: string;
|
|
276
276
|
state: string;
|
|
277
277
|
amount: number;
|
|
278
278
|
quantity: number;
|
|
@@ -290,8 +290,8 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
290
290
|
deliveredAt?: number | undefined;
|
|
291
291
|
estimatedShipDate?: number | undefined;
|
|
292
292
|
}, {
|
|
293
|
-
name: string;
|
|
294
293
|
id: string;
|
|
294
|
+
name: string;
|
|
295
295
|
state: string;
|
|
296
296
|
amount: number;
|
|
297
297
|
quantity: number;
|
|
@@ -422,12 +422,12 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
422
422
|
extClaimId?: string | undefined;
|
|
423
423
|
}>, "many">;
|
|
424
424
|
}, "strip", z.ZodTypeAny, {
|
|
425
|
-
title: string;
|
|
426
425
|
id: string;
|
|
426
|
+
title: string;
|
|
427
427
|
createdAt: number;
|
|
428
428
|
items: {
|
|
429
|
-
name: string;
|
|
430
429
|
id: string;
|
|
430
|
+
name: string;
|
|
431
431
|
state: string;
|
|
432
432
|
amount: number;
|
|
433
433
|
quantity: number;
|
|
@@ -486,12 +486,12 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
486
486
|
province?: string | undefined;
|
|
487
487
|
} | undefined;
|
|
488
488
|
}, {
|
|
489
|
-
title: string;
|
|
490
489
|
id: string;
|
|
490
|
+
title: string;
|
|
491
491
|
createdAt: number;
|
|
492
492
|
items: {
|
|
493
|
-
name: string;
|
|
494
493
|
id: string;
|
|
494
|
+
name: string;
|
|
495
495
|
state: string;
|
|
496
496
|
amount: number;
|
|
497
497
|
quantity: number;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|