@sentry/junior-plugin-api 0.256.0 → 0.257.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/index.d.ts +9 -0
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1477,6 +1477,7 @@ declare const pluginProviderAccountSchema: z.ZodObject<{
|
|
|
1477
1477
|
id: z.ZodString;
|
|
1478
1478
|
label: z.ZodOptional<z.ZodString>;
|
|
1479
1479
|
url: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
verifiedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1480
1481
|
}, z.core.$strict>;
|
|
1481
1482
|
/** Runtime schema for OAuth tokens stored by the host for plugin credentials. */
|
|
1482
1483
|
declare const pluginStoredTokensSchema: z.ZodObject<{
|
|
@@ -1486,6 +1487,7 @@ declare const pluginStoredTokensSchema: z.ZodObject<{
|
|
|
1486
1487
|
id: z.ZodString;
|
|
1487
1488
|
label: z.ZodOptional<z.ZodString>;
|
|
1488
1489
|
url: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
verifiedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1489
1491
|
}, z.core.$strict>>;
|
|
1490
1492
|
accessToken: z.ZodString;
|
|
1491
1493
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1514,6 +1516,7 @@ declare const pluginCredentialLeaseSchema: z.ZodObject<{
|
|
|
1514
1516
|
id: z.ZodString;
|
|
1515
1517
|
label: z.ZodOptional<z.ZodString>;
|
|
1516
1518
|
url: z.ZodOptional<z.ZodString>;
|
|
1519
|
+
verifiedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1517
1520
|
}, z.core.$strict>>;
|
|
1518
1521
|
authorization: z.ZodOptional<z.ZodObject<{
|
|
1519
1522
|
provider: z.ZodString;
|
|
@@ -1535,6 +1538,7 @@ declare const pluginCredentialResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1535
1538
|
id: z.ZodString;
|
|
1536
1539
|
label: z.ZodOptional<z.ZodString>;
|
|
1537
1540
|
url: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
verifiedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1538
1542
|
}, z.core.$strict>>;
|
|
1539
1543
|
authorization: z.ZodOptional<z.ZodObject<{
|
|
1540
1544
|
provider: z.ZodString;
|
|
@@ -1636,6 +1640,11 @@ interface PluginTokenStore {
|
|
|
1636
1640
|
}
|
|
1637
1641
|
interface ResolveOAuthAccountHookContext extends PluginContext {
|
|
1638
1642
|
tokens: PluginStoredTokens;
|
|
1643
|
+
/**
|
|
1644
|
+
* Parsed JSON body of the provider token response. Some providers return
|
|
1645
|
+
* the authorized account in this body.
|
|
1646
|
+
*/
|
|
1647
|
+
tokenResponse: Record<string, unknown>;
|
|
1639
1648
|
}
|
|
1640
1649
|
interface IssueCredentialHookContext extends PluginContext {
|
|
1641
1650
|
actor: PluginCredentialActor;
|
package/dist/index.js
CHANGED
|
@@ -1058,7 +1058,13 @@ var pluginProviderAccountSchema = z13.object({
|
|
|
1058
1058
|
handle: nonBlankStringSchema.optional(),
|
|
1059
1059
|
id: nonBlankStringSchema,
|
|
1060
1060
|
label: nonBlankStringSchema.optional(),
|
|
1061
|
-
url: nonBlankStringSchema.optional()
|
|
1061
|
+
url: nonBlankStringSchema.optional(),
|
|
1062
|
+
/**
|
|
1063
|
+
* Email addresses that the provider verified for this account. Junior
|
|
1064
|
+
* uses them only to link the account to a person and does not store them
|
|
1065
|
+
* with the tokens.
|
|
1066
|
+
*/
|
|
1067
|
+
verifiedEmails: z13.array(nonBlankStringSchema).optional()
|
|
1062
1068
|
}).strict();
|
|
1063
1069
|
var pluginStoredTokensSchema = z13.object({
|
|
1064
1070
|
account: pluginProviderAccountSchema.optional(),
|