@shipfox/api-integration-sentry-dto 9.0.2 → 12.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.
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 5 files with swc (110.27ms)
2
+ Successfully compiled: 5 files with swc (373.86ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @shipfox/api-integration-sentry-dto
2
2
 
3
+ ## 12.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7901a60]
8
+ - @shipfox/api-integration-core-dto@12.2.0
9
+
10
+ ## 12.0.0
11
+
12
+ ### Patch Changes
13
+
14
+ - f78740d: Remove Unicode dash punctuation from package prose and source comments.
15
+ - Updated dependencies [f13e8bb]
16
+ - Updated dependencies [869a792]
17
+ - Updated dependencies [032d316]
18
+ - Updated dependencies [54c820e]
19
+ - Updated dependencies [cb0abfa]
20
+ - @shipfox/api-integration-core-dto@12.0.0
21
+
3
22
  ## 9.0.2
4
23
 
5
24
  ### Patch Changes
@@ -1,8 +1,8 @@
1
1
  export declare const sentryEventCatalog: {
2
- readonly provider: "Sentry";
2
+ readonly provider: 'Sentry';
3
3
  readonly events: {
4
4
  name: string;
5
- summary: "A Sentry issue is created." | "A Sentry issue is resolved." | "A Sentry issue is assigned." | "A Sentry issue is archived." | "A resolved Sentry issue becomes unresolved.";
5
+ summary: "A Sentry issue is archived." | "A Sentry issue is assigned." | "A Sentry issue is created." | "A Sentry issue is resolved." | "A resolved Sentry issue becomes unresolved.";
6
6
  emittedWhen: string;
7
7
  payloadKind: "shipfox-normalized";
8
8
  payloadDocUrl: string;
@@ -1 +1 @@
1
- {"version":3,"file":"event-catalog.d.ts","sourceRoot":"","sources":["../src/event-catalog.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,kBAAkB;;;;;;;;;CAYa,CAAC"}
1
+ {"version":3,"file":"event-catalog.d.ts","sourceRoot":"","sources":["../src/event-catalog.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,kBAAkB;uBACnB,QAAQ;;;;;;;;CAWwB,CAAC"}
@@ -21,13 +21,13 @@ export declare const sentryConnectResponseSchema: z.ZodObject<{
21
21
  slug: z.ZodString;
22
22
  display_name: z.ZodString;
23
23
  lifecycle_status: z.ZodEnum<{
24
- error: "error";
25
24
  active: "active";
26
25
  disabled: "disabled";
26
+ error: "error";
27
27
  }>;
28
28
  capabilities: z.ZodArray<z.ZodEnum<{
29
- source_control: "source_control";
30
29
  agent_tools: "agent_tools";
30
+ source_control: "source_control";
31
31
  }>>;
32
32
  external_url: z.ZodOptional<z.ZodString>;
33
33
  created_at: z.ZodString;
@@ -1,18 +1,18 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sentryIssueActionSchema: z.ZodEnum<{
3
+ archived: "archived";
4
+ assigned: "assigned";
3
5
  created: "created";
4
6
  resolved: "resolved";
5
- assigned: "assigned";
6
- archived: "archived";
7
7
  unresolved: "unresolved";
8
8
  }>;
9
9
  export type SentryIssueAction = z.infer<typeof sentryIssueActionSchema>;
10
10
  export declare const sentryIssueWebhookSchema: z.ZodObject<{
11
11
  action: z.ZodEnum<{
12
+ archived: "archived";
13
+ assigned: "assigned";
12
14
  created: "created";
13
15
  resolved: "resolved";
14
- assigned: "assigned";
15
- archived: "archived";
16
16
  unresolved: "unresolved";
17
17
  }>;
18
18
  installation: z.ZodObject<{
@@ -30,7 +30,7 @@ export const sentryIssueWebhookSchema = z.object({
30
30
  });
31
31
  // Sentry delivers the installation lifecycle under `data.installation` (issue
32
32
  // webhooks instead carry a top-level `installation`). The signed payload carries
33
- // the same material the browser redirect delivers unauthenticated the install
33
+ // the same material the browser redirect delivers while unauthenticated. The install
34
34
  // uuid, the org slug, and the single-use authorization `code`. Only consumed
35
35
  // fields are validated; `status`/`actor` are tolerated-but-optional. The raw
36
36
  // `code` is security-sensitive and must never be logged.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/webhooks.ts"],"sourcesContent":["import {SENTRY_ISSUE_ACTIONS} from '@shipfox/api-integration-core-dto';\nimport {z} from 'zod';\n\n// Built from the SENTRY_ISSUE_ACTIONS tuple in core-dto so the accepted webhook\n// actions stay in lockstep with the published SentryIssuePayload contract. Sentry\n// may add actions without notice; unknown actions are acknowledged and dropped.\nexport const sentryIssueActionSchema = z.enum(SENTRY_ISSUE_ACTIONS);\nexport type SentryIssueAction = z.infer<typeof sentryIssueActionSchema>;\n\n// Sentry sends large webhook envelopes; validating only consumed fields avoids\n// coupling ingestion to unrelated provider payload changes.\nexport const sentryIssueWebhookSchema = z.object({\n action: sentryIssueActionSchema,\n installation: z.object({uuid: z.string().min(1)}),\n data: z.object({\n issue: z.object({\n id: z.coerce.string().min(1),\n shortId: z.string().nullable().optional(),\n title: z.string().optional(),\n culprit: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n status: z.string().nullable().optional(),\n platform: z.string().nullable().optional(),\n web_url: z.string().nullable().optional(),\n url: z.string().nullable().optional(),\n project_url: z.string().nullable().optional(),\n firstSeen: z.string().nullable().optional(),\n lastSeen: z.string().nullable().optional(),\n }),\n }),\n});\nexport type SentryIssueWebhookDto = z.infer<typeof sentryIssueWebhookSchema>;\n\n// Sentry delivers the installation lifecycle under `data.installation` (issue\n// webhooks instead carry a top-level `installation`). The signed payload carries\n// the same material the browser redirect delivers unauthenticated the install\n// uuid, the org slug, and the single-use authorization `code`. Only consumed\n// fields are validated; `status`/`actor` are tolerated-but-optional. The raw\n// `code` is security-sensitive and must never be logged.\nexport const sentryInstallationWebhookSchema = z.object({\n action: z.enum(['created', 'deleted']),\n // Identifies who performed the install in Sentry. Tolerated for forward-compat\n // but not consumed; never trusted.\n actor: z\n .object({\n type: z.string().optional(),\n id: z.union([z.string(), z.number()]).optional(),\n name: z.string().optional(),\n })\n .optional(),\n data: z.object({\n installation: z.object({\n uuid: z.string().min(1),\n status: z.string().optional(),\n code: z.string().min(1).optional(),\n organization: z.object({slug: z.string().min(1)}).optional(),\n }),\n }),\n});\nexport type SentryInstallationWebhookDto = z.infer<typeof sentryInstallationWebhookSchema>;\n"],"names":["SENTRY_ISSUE_ACTIONS","z","sentryIssueActionSchema","enum","sentryIssueWebhookSchema","object","action","installation","uuid","string","min","data","issue","id","coerce","shortId","nullable","optional","title","culprit","level","status","platform","web_url","url","project_url","firstSeen","lastSeen","sentryInstallationWebhookSchema","actor","type","union","number","name","code","organization","slug"],"mappings":"AAAA,SAAQA,oBAAoB,QAAO,oCAAoC;AACvE,SAAQC,CAAC,QAAO,MAAM;AAEtB,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,OAAO,MAAMC,0BAA0BD,EAAEE,IAAI,CAACH,sBAAsB;AAGpE,+EAA+E;AAC/E,4DAA4D;AAC5D,OAAO,MAAMI,2BAA2BH,EAAEI,MAAM,CAAC;IAC/CC,QAAQJ;IACRK,cAAcN,EAAEI,MAAM,CAAC;QAACG,MAAMP,EAAEQ,MAAM,GAAGC,GAAG,CAAC;IAAE;IAC/CC,MAAMV,EAAEI,MAAM,CAAC;QACbO,OAAOX,EAAEI,MAAM,CAAC;YACdQ,IAAIZ,EAAEa,MAAM,CAACL,MAAM,GAAGC,GAAG,CAAC;YAC1BK,SAASd,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACvCC,OAAOjB,EAAEQ,MAAM,GAAGQ,QAAQ;YAC1BE,SAASlB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACvCG,OAAOnB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACrCI,QAAQpB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACtCK,UAAUrB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACxCM,SAAStB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACvCO,KAAKvB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACnCQ,aAAaxB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YAC3CS,WAAWzB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACzCU,UAAU1B,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;QAC1C;IACF;AACF,GAAG;AAGH,8EAA8E;AAC9E,iFAAiF;AACjF,gFAAgF;AAChF,6EAA6E;AAC7E,6EAA6E;AAC7E,yDAAyD;AACzD,OAAO,MAAMW,kCAAkC3B,EAAEI,MAAM,CAAC;IACtDC,QAAQL,EAAEE,IAAI,CAAC;QAAC;QAAW;KAAU;IACrC,+EAA+E;IAC/E,mCAAmC;IACnC0B,OAAO5B,EACJI,MAAM,CAAC;QACNyB,MAAM7B,EAAEQ,MAAM,GAAGQ,QAAQ;QACzBJ,IAAIZ,EAAE8B,KAAK,CAAC;YAAC9B,EAAEQ,MAAM;YAAIR,EAAE+B,MAAM;SAAG,EAAEf,QAAQ;QAC9CgB,MAAMhC,EAAEQ,MAAM,GAAGQ,QAAQ;IAC3B,GACCA,QAAQ;IACXN,MAAMV,EAAEI,MAAM,CAAC;QACbE,cAAcN,EAAEI,MAAM,CAAC;YACrBG,MAAMP,EAAEQ,MAAM,GAAGC,GAAG,CAAC;YACrBW,QAAQpB,EAAEQ,MAAM,GAAGQ,QAAQ;YAC3BiB,MAAMjC,EAAEQ,MAAM,GAAGC,GAAG,CAAC,GAAGO,QAAQ;YAChCkB,cAAclC,EAAEI,MAAM,CAAC;gBAAC+B,MAAMnC,EAAEQ,MAAM,GAAGC,GAAG,CAAC;YAAE,GAAGO,QAAQ;QAC5D;IACF;AACF,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/webhooks.ts"],"sourcesContent":["import {SENTRY_ISSUE_ACTIONS} from '@shipfox/api-integration-core-dto';\nimport {z} from 'zod';\n\n// Built from the SENTRY_ISSUE_ACTIONS tuple in core-dto so the accepted webhook\n// actions stay in lockstep with the published SentryIssuePayload contract. Sentry\n// may add actions without notice; unknown actions are acknowledged and dropped.\nexport const sentryIssueActionSchema = z.enum(SENTRY_ISSUE_ACTIONS);\nexport type SentryIssueAction = z.infer<typeof sentryIssueActionSchema>;\n\n// Sentry sends large webhook envelopes; validating only consumed fields avoids\n// coupling ingestion to unrelated provider payload changes.\nexport const sentryIssueWebhookSchema = z.object({\n action: sentryIssueActionSchema,\n installation: z.object({uuid: z.string().min(1)}),\n data: z.object({\n issue: z.object({\n id: z.coerce.string().min(1),\n shortId: z.string().nullable().optional(),\n title: z.string().optional(),\n culprit: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n status: z.string().nullable().optional(),\n platform: z.string().nullable().optional(),\n web_url: z.string().nullable().optional(),\n url: z.string().nullable().optional(),\n project_url: z.string().nullable().optional(),\n firstSeen: z.string().nullable().optional(),\n lastSeen: z.string().nullable().optional(),\n }),\n }),\n});\nexport type SentryIssueWebhookDto = z.infer<typeof sentryIssueWebhookSchema>;\n\n// Sentry delivers the installation lifecycle under `data.installation` (issue\n// webhooks instead carry a top-level `installation`). The signed payload carries\n// the same material the browser redirect delivers while unauthenticated. The install\n// uuid, the org slug, and the single-use authorization `code`. Only consumed\n// fields are validated; `status`/`actor` are tolerated-but-optional. The raw\n// `code` is security-sensitive and must never be logged.\nexport const sentryInstallationWebhookSchema = z.object({\n action: z.enum(['created', 'deleted']),\n // Identifies who performed the install in Sentry. Tolerated for forward-compat\n // but not consumed; never trusted.\n actor: z\n .object({\n type: z.string().optional(),\n id: z.union([z.string(), z.number()]).optional(),\n name: z.string().optional(),\n })\n .optional(),\n data: z.object({\n installation: z.object({\n uuid: z.string().min(1),\n status: z.string().optional(),\n code: z.string().min(1).optional(),\n organization: z.object({slug: z.string().min(1)}).optional(),\n }),\n }),\n});\nexport type SentryInstallationWebhookDto = z.infer<typeof sentryInstallationWebhookSchema>;\n"],"names":["SENTRY_ISSUE_ACTIONS","z","sentryIssueActionSchema","enum","sentryIssueWebhookSchema","object","action","installation","uuid","string","min","data","issue","id","coerce","shortId","nullable","optional","title","culprit","level","status","platform","web_url","url","project_url","firstSeen","lastSeen","sentryInstallationWebhookSchema","actor","type","union","number","name","code","organization","slug"],"mappings":"AAAA,SAAQA,oBAAoB,QAAO,oCAAoC;AACvE,SAAQC,CAAC,QAAO,MAAM;AAEtB,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,OAAO,MAAMC,0BAA0BD,EAAEE,IAAI,CAACH,sBAAsB;AAGpE,+EAA+E;AAC/E,4DAA4D;AAC5D,OAAO,MAAMI,2BAA2BH,EAAEI,MAAM,CAAC;IAC/CC,QAAQJ;IACRK,cAAcN,EAAEI,MAAM,CAAC;QAACG,MAAMP,EAAEQ,MAAM,GAAGC,GAAG,CAAC;IAAE;IAC/CC,MAAMV,EAAEI,MAAM,CAAC;QACbO,OAAOX,EAAEI,MAAM,CAAC;YACdQ,IAAIZ,EAAEa,MAAM,CAACL,MAAM,GAAGC,GAAG,CAAC;YAC1BK,SAASd,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACvCC,OAAOjB,EAAEQ,MAAM,GAAGQ,QAAQ;YAC1BE,SAASlB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACvCG,OAAOnB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACrCI,QAAQpB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACtCK,UAAUrB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACxCM,SAAStB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACvCO,KAAKvB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACnCQ,aAAaxB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YAC3CS,WAAWzB,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;YACzCU,UAAU1B,EAAEQ,MAAM,GAAGO,QAAQ,GAAGC,QAAQ;QAC1C;IACF;AACF,GAAG;AAGH,8EAA8E;AAC9E,iFAAiF;AACjF,qFAAqF;AACrF,6EAA6E;AAC7E,6EAA6E;AAC7E,yDAAyD;AACzD,OAAO,MAAMW,kCAAkC3B,EAAEI,MAAM,CAAC;IACtDC,QAAQL,EAAEE,IAAI,CAAC;QAAC;QAAW;KAAU;IACrC,+EAA+E;IAC/E,mCAAmC;IACnC0B,OAAO5B,EACJI,MAAM,CAAC;QACNyB,MAAM7B,EAAEQ,MAAM,GAAGQ,QAAQ;QACzBJ,IAAIZ,EAAE8B,KAAK,CAAC;YAAC9B,EAAEQ,MAAM;YAAIR,EAAE+B,MAAM;SAAG,EAAEf,QAAQ;QAC9CgB,MAAMhC,EAAEQ,MAAM,GAAGQ,QAAQ;IAC3B,GACCA,QAAQ;IACXN,MAAMV,EAAEI,MAAM,CAAC;QACbE,cAAcN,EAAEI,MAAM,CAAC;YACrBG,MAAMP,EAAEQ,MAAM,GAAGC,GAAG,CAAC;YACrBW,QAAQpB,EAAEQ,MAAM,GAAGQ,QAAQ;YAC3BiB,MAAMjC,EAAEQ,MAAM,GAAGC,GAAG,CAAC,GAAGO,QAAQ;YAChCkB,cAAclC,EAAEI,MAAM,CAAC;gBAAC+B,MAAMnC,EAAEQ,MAAM,GAAGC,GAAG,CAAC;YAAE,GAAGO,QAAQ;QAC5D;IACF;AACF,GAAG"}