@shipfox/api-integration-core-dto 12.0.0 → 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: 8 files with swc (265.42ms)
2
+ Successfully compiled: 8 files with swc (390.78ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @shipfox/api-integration-core-dto
2
2
 
3
+ ## 12.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7901a60: Retry workspace workflow definition syncs when an integration connection becomes available.
8
+
3
9
  ## 12.0.0
4
10
 
5
11
  ### Major Changes
package/dist/events.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const INTEGRATION_EVENT_RECEIVED: "integrations.event.received";
2
+ export declare const INTEGRATION_EVENT_RECEIVED: 'integrations.event.received';
3
+ export declare const INTEGRATION_CONNECTION_AVAILABLE: 'integrations.connection.available';
3
4
  export declare const integrationEventReceivedSchema: z.ZodObject<{
4
5
  provider: z.ZodString;
5
6
  source: z.ZodString;
@@ -12,6 +13,13 @@ export declare const integrationEventReceivedSchema: z.ZodObject<{
12
13
  payload: z.ZodCustom<unknown, unknown>;
13
14
  }, z.core.$strip>;
14
15
  export type IntegrationEventReceivedEvent = z.infer<typeof integrationEventReceivedSchema>;
16
+ export declare const integrationConnectionAvailableSchema: z.ZodObject<{
17
+ provider: z.ZodString;
18
+ workspaceId: z.ZodString;
19
+ connectionId: z.ZodString;
20
+ slug: z.ZodString;
21
+ }, z.core.$strip>;
22
+ export type IntegrationConnectionAvailableEvent = z.infer<typeof integrationConnectionAvailableSchema>;
15
23
  export declare const sourcePushSchema: z.ZodObject<{
16
24
  externalRepositoryId: z.ZodString;
17
25
  ref: z.ZodString;
@@ -20,7 +28,7 @@ export declare const sourcePushSchema: z.ZodObject<{
20
28
  isDefaultBranch: z.ZodBoolean;
21
29
  }, z.core.$strip>;
22
30
  export type SourcePushPayload = z.infer<typeof sourcePushSchema>;
23
- export declare const INTEGRATION_SOURCE_COMMIT_PUSHED: "integrations.source_control.commit_pushed";
31
+ export declare const INTEGRATION_SOURCE_COMMIT_PUSHED: 'integrations.source_control.commit_pushed';
24
32
  export declare const integrationSourceCommitPushedSchema: z.ZodObject<{
25
33
  provider: z.ZodString;
26
34
  workspaceId: z.ZodString;
@@ -43,7 +51,7 @@ export declare const sourceRepositoryIdentitySchema: z.ZodObject<{
43
51
  defaultBranch: z.ZodString;
44
52
  }, z.core.$strip>;
45
53
  export type SourceRepositoryIdentity = z.infer<typeof sourceRepositoryIdentitySchema>;
46
- export declare const INTEGRATION_SOURCE_REPOSITORY_UPDATED: "integrations.source_control.repository_updated";
54
+ export declare const INTEGRATION_SOURCE_REPOSITORY_UPDATED: 'integrations.source_control.repository_updated';
47
55
  export declare const integrationSourceRepositoryUpdatedSchema: z.ZodObject<{
48
56
  provider: z.ZodString;
49
57
  workspaceId: z.ZodString;
@@ -73,14 +81,21 @@ export interface SentryIssuePayload {
73
81
  firstSeenAt: string | null;
74
82
  lastSeenAt: string | null;
75
83
  }
76
- export declare const SENTRY_ISSUE_ACTIONS: readonly ["created", "resolved", "assigned", "archived", "unresolved"];
84
+ export declare const SENTRY_ISSUE_ACTIONS: readonly ['created', 'resolved', 'assigned', 'archived', 'unresolved'];
77
85
  export type SentryIssueAction = (typeof SENTRY_ISSUE_ACTIONS)[number];
78
86
  export interface IntegrationsEventMap {
87
+ [INTEGRATION_CONNECTION_AVAILABLE]: IntegrationConnectionAvailableEvent;
79
88
  [INTEGRATION_EVENT_RECEIVED]: IntegrationEventReceivedEvent;
80
89
  [INTEGRATION_SOURCE_COMMIT_PUSHED]: IntegrationSourceCommitPushedEvent;
81
90
  [INTEGRATION_SOURCE_REPOSITORY_UPDATED]: IntegrationSourceRepositoryUpdatedEvent;
82
91
  }
83
92
  export declare const integrationsEventSchemas: {
93
+ "integrations.connection.available": z.ZodObject<{
94
+ provider: z.ZodString;
95
+ workspaceId: z.ZodString;
96
+ connectionId: z.ZodString;
97
+ slug: z.ZodString;
98
+ }, z.core.$strip>;
84
99
  "integrations.event.received": z.ZodObject<{
85
100
  provider: z.ZodString;
86
101
  source: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,0BAA0B,EAAG,6BAAsC,CAAC;AAOjF,eAAO,MAAM,8BAA8B;;;;;;;;;;iBAYzC,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAI3F,eAAO,MAAM,gBAAgB;;;;;;iBAM3B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEjE,eAAO,MAAM,gCAAgC,EAC3C,2CAAoD,CAAC;AAKvD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;iBAO9C,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;iBAKzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,qCAAqC,EAChD,gDAAyD,CAAC;AAK5D,eAAO,MAAM,wCAAwC;;;;;;;;;;;;iBAOnD,CAAC;AACH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,wCAAwC,CAChD,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;I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KD,eAAO,MAAM,oBAAoB,YAC/B,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,CACJ,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC,CAAC,gCAAgC,CAAC,EAAE,mCAAmC,CAAC;IACxE,CAAC,0BAA0B,CAAC,EAAE,6BAA6B,CAAC;IAC5D,CAAC,gCAAgC,CAAC,EAAE,kCAAkC,CAAC;IACvE,CAAC,qCAAqC,CAAC,EAAE,uCAAuC,CAAC;CAClF;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKoB,CAAC"}
package/dist/events.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export const INTEGRATION_EVENT_RECEIVED = 'integrations.event.received';
3
+ export const INTEGRATION_CONNECTION_AVAILABLE = 'integrations.connection.available';
3
4
  const nonEmptyStringSchema = z.string().nonempty();
4
5
  const isoDateTimeSchema = z.string().datetime();
5
6
  const requiredUnknownSchema = z.custom((value)=>value !== undefined);
@@ -17,6 +18,12 @@ export const integrationEventReceivedSchema = z.object({
17
18
  receivedAt: isoDateTimeSchema,
18
19
  payload: requiredUnknownSchema
19
20
  });
21
+ export const integrationConnectionAvailableSchema = z.object({
22
+ provider: nonEmptyStringSchema,
23
+ workspaceId: nonEmptyStringSchema,
24
+ connectionId: nonEmptyStringSchema,
25
+ slug: nonEmptyStringSchema
26
+ });
20
27
  // A source-control push, normalized by the producing provider and carried by
21
28
  // `INTEGRATION_SOURCE_COMMIT_PUSHED` for domain consumers.
22
29
  export const sourcePushSchema = z.object({
@@ -67,6 +74,7 @@ export const SENTRY_ISSUE_ACTIONS = [
67
74
  'unresolved'
68
75
  ];
69
76
  export const integrationsEventSchemas = {
77
+ [INTEGRATION_CONNECTION_AVAILABLE]: integrationConnectionAvailableSchema,
70
78
  [INTEGRATION_EVENT_RECEIVED]: integrationEventReceivedSchema,
71
79
  [INTEGRATION_SOURCE_COMMIT_PUSHED]: integrationSourceCommitPushedSchema,
72
80
  [INTEGRATION_SOURCE_REPOSITORY_UPDATED]: integrationSourceRepositoryUpdatedSchema
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const INTEGRATION_EVENT_RECEIVED = 'integrations.event.received' as const;\n\nconst nonEmptyStringSchema = z.string().nonempty();\nconst isoDateTimeSchema = z.string().datetime();\nconst requiredUnknownSchema = z.custom<unknown>((value) => value !== undefined);\nconst nullableConnectionNameSchema = nonEmptyStringSchema.nullish().default(null);\n\nexport const integrationEventReceivedSchema = z.object({\n provider: nonEmptyStringSchema,\n source: nonEmptyStringSchema,\n event: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n connectionId: nonEmptyStringSchema,\n // Denormalized so trigger consumers can render the connection name without a\n // synchronous callback into the integrations module.\n connectionName: nullableConnectionNameSchema,\n deliveryId: nonEmptyStringSchema,\n receivedAt: isoDateTimeSchema,\n payload: requiredUnknownSchema,\n});\nexport type IntegrationEventReceivedEvent = z.infer<typeof integrationEventReceivedSchema>;\n\n// A source-control push, normalized by the producing provider and carried by\n// `INTEGRATION_SOURCE_COMMIT_PUSHED` for domain consumers.\nexport const sourcePushSchema = z.object({\n externalRepositoryId: nonEmptyStringSchema,\n ref: nonEmptyStringSchema,\n headCommitSha: nonEmptyStringSchema,\n defaultBranch: nonEmptyStringSchema,\n isDefaultBranch: z.boolean(),\n});\nexport type SourcePushPayload = z.infer<typeof sourcePushSchema>;\n\nexport const INTEGRATION_SOURCE_COMMIT_PUSHED =\n 'integrations.source_control.commit_pushed' as const;\n\n// Typed, provider-agnostic source-control event. The producing provider owns the\n// translation from its raw webhook into this shape, so domain consumers never decode\n// provider payloads. `isDefaultBranch` is a fact; the branch policy lives in the consumer.\nexport const integrationSourceCommitPushedSchema = z.object({\n provider: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n connectionId: nonEmptyStringSchema,\n deliveryId: nonEmptyStringSchema,\n receivedAt: isoDateTimeSchema,\n push: sourcePushSchema,\n});\nexport type IntegrationSourceCommitPushedEvent = z.infer<\n typeof integrationSourceCommitPushedSchema\n>;\n\nexport const sourceRepositoryIdentitySchema = z.object({\n externalRepositoryId: nonEmptyStringSchema,\n owner: nonEmptyStringSchema,\n name: nonEmptyStringSchema,\n defaultBranch: nonEmptyStringSchema,\n});\nexport type SourceRepositoryIdentity = z.infer<typeof sourceRepositoryIdentitySchema>;\n\nexport const INTEGRATION_SOURCE_REPOSITORY_UPDATED =\n 'integrations.source_control.repository_updated' as const;\n\n// Typed, provider-agnostic source-control event. The producing provider owns the\n// translation from its raw webhook into this shape, so domain consumers never decode\n// provider payloads.\nexport const integrationSourceRepositoryUpdatedSchema = z.object({\n provider: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n connectionId: nonEmptyStringSchema,\n deliveryId: nonEmptyStringSchema,\n receivedAt: isoDateTimeSchema,\n repository: sourceRepositoryIdentitySchema,\n});\nexport type IntegrationSourceRepositoryUpdatedEvent = z.infer<\n typeof integrationSourceRepositoryUpdatedSchema\n>;\n\nexport interface SentryIssuePayload {\n action: SentryIssueAction;\n issueId: string;\n shortId: string | null;\n title: string;\n culprit: string | null;\n level: string | null;\n status: string | null;\n platform: string | null;\n webUrl: string | null;\n issueUrl: string | null;\n projectUrl: string | null;\n firstSeenAt: string | null;\n lastSeenAt: string | null;\n}\n\n// Single source of truth for Sentry issue actions: the sentry-dto webhook schema\n// builds its z.enum from this tuple, so accepted webhook actions and the published\n// SentryIssuePayload contract cannot drift.\nexport const SENTRY_ISSUE_ACTIONS = [\n 'created',\n 'resolved',\n 'assigned',\n 'archived',\n 'unresolved',\n] as const;\n\nexport type SentryIssueAction = (typeof SENTRY_ISSUE_ACTIONS)[number];\n\nexport interface IntegrationsEventMap {\n [INTEGRATION_EVENT_RECEIVED]: IntegrationEventReceivedEvent;\n [INTEGRATION_SOURCE_COMMIT_PUSHED]: IntegrationSourceCommitPushedEvent;\n [INTEGRATION_SOURCE_REPOSITORY_UPDATED]: IntegrationSourceRepositoryUpdatedEvent;\n}\n\nexport const integrationsEventSchemas = {\n [INTEGRATION_EVENT_RECEIVED]: integrationEventReceivedSchema,\n [INTEGRATION_SOURCE_COMMIT_PUSHED]: integrationSourceCommitPushedSchema,\n [INTEGRATION_SOURCE_REPOSITORY_UPDATED]: integrationSourceRepositoryUpdatedSchema,\n} satisfies Record<keyof IntegrationsEventMap, z.ZodType>;\n"],"names":["z","INTEGRATION_EVENT_RECEIVED","nonEmptyStringSchema","string","nonempty","isoDateTimeSchema","datetime","requiredUnknownSchema","custom","value","undefined","nullableConnectionNameSchema","nullish","default","integrationEventReceivedSchema","object","provider","source","event","workspaceId","connectionId","connectionName","deliveryId","receivedAt","payload","sourcePushSchema","externalRepositoryId","ref","headCommitSha","defaultBranch","isDefaultBranch","boolean","INTEGRATION_SOURCE_COMMIT_PUSHED","integrationSourceCommitPushedSchema","push","sourceRepositoryIdentitySchema","owner","name","INTEGRATION_SOURCE_REPOSITORY_UPDATED","integrationSourceRepositoryUpdatedSchema","repository","SENTRY_ISSUE_ACTIONS","integrationsEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,6BAA6B,8BAAuC;AAEjF,MAAMC,uBAAuBF,EAAEG,MAAM,GAAGC,QAAQ;AAChD,MAAMC,oBAAoBL,EAAEG,MAAM,GAAGG,QAAQ;AAC7C,MAAMC,wBAAwBP,EAAEQ,MAAM,CAAU,CAACC,QAAUA,UAAUC;AACrE,MAAMC,+BAA+BT,qBAAqBU,OAAO,GAAGC,OAAO,CAAC;AAE5E,OAAO,MAAMC,iCAAiCd,EAAEe,MAAM,CAAC;IACrDC,UAAUd;IACVe,QAAQf;IACRgB,OAAOhB;IACPiB,aAAajB;IACbkB,cAAclB;IACd,6EAA6E;IAC7E,qDAAqD;IACrDmB,gBAAgBV;IAChBW,YAAYpB;IACZqB,YAAYlB;IACZmB,SAASjB;AACX,GAAG;AAGH,6EAA6E;AAC7E,2DAA2D;AAC3D,OAAO,MAAMkB,mBAAmBzB,EAAEe,MAAM,CAAC;IACvCW,sBAAsBxB;IACtByB,KAAKzB;IACL0B,eAAe1B;IACf2B,eAAe3B;IACf4B,iBAAiB9B,EAAE+B,OAAO;AAC5B,GAAG;AAGH,OAAO,MAAMC,mCACX,4CAAqD;AAEvD,iFAAiF;AACjF,qFAAqF;AACrF,2FAA2F;AAC3F,OAAO,MAAMC,sCAAsCjC,EAAEe,MAAM,CAAC;IAC1DC,UAAUd;IACViB,aAAajB;IACbkB,cAAclB;IACdoB,YAAYpB;IACZqB,YAAYlB;IACZ6B,MAAMT;AACR,GAAG;AAKH,OAAO,MAAMU,iCAAiCnC,EAAEe,MAAM,CAAC;IACrDW,sBAAsBxB;IACtBkC,OAAOlC;IACPmC,MAAMnC;IACN2B,eAAe3B;AACjB,GAAG;AAGH,OAAO,MAAMoC,wCACX,iDAA0D;AAE5D,iFAAiF;AACjF,qFAAqF;AACrF,qBAAqB;AACrB,OAAO,MAAMC,2CAA2CvC,EAAEe,MAAM,CAAC;IAC/DC,UAAUd;IACViB,aAAajB;IACbkB,cAAclB;IACdoB,YAAYpB;IACZqB,YAAYlB;IACZmC,YAAYL;AACd,GAAG;AAqBH,iFAAiF;AACjF,mFAAmF;AACnF,4CAA4C;AAC5C,OAAO,MAAMM,uBAAuB;IAClC;IACA;IACA;IACA;IACA;CACD,CAAU;AAUX,OAAO,MAAMC,2BAA2B;IACtC,CAACzC,2BAA2B,EAAEa;IAC9B,CAACkB,iCAAiC,EAAEC;IACpC,CAACK,sCAAsC,EAAEC;AAC3C,EAA0D"}
1
+ {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const INTEGRATION_EVENT_RECEIVED = 'integrations.event.received' as const;\nexport const INTEGRATION_CONNECTION_AVAILABLE = 'integrations.connection.available' as const;\n\nconst nonEmptyStringSchema = z.string().nonempty();\nconst isoDateTimeSchema = z.string().datetime();\nconst requiredUnknownSchema = z.custom<unknown>((value) => value !== undefined);\nconst nullableConnectionNameSchema = nonEmptyStringSchema.nullish().default(null);\n\nexport const integrationEventReceivedSchema = z.object({\n provider: nonEmptyStringSchema,\n source: nonEmptyStringSchema,\n event: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n connectionId: nonEmptyStringSchema,\n // Denormalized so trigger consumers can render the connection name without a\n // synchronous callback into the integrations module.\n connectionName: nullableConnectionNameSchema,\n deliveryId: nonEmptyStringSchema,\n receivedAt: isoDateTimeSchema,\n payload: requiredUnknownSchema,\n});\nexport type IntegrationEventReceivedEvent = z.infer<typeof integrationEventReceivedSchema>;\n\nexport const integrationConnectionAvailableSchema = z.object({\n provider: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n connectionId: nonEmptyStringSchema,\n slug: nonEmptyStringSchema,\n});\nexport type IntegrationConnectionAvailableEvent = z.infer<\n typeof integrationConnectionAvailableSchema\n>;\n\n// A source-control push, normalized by the producing provider and carried by\n// `INTEGRATION_SOURCE_COMMIT_PUSHED` for domain consumers.\nexport const sourcePushSchema = z.object({\n externalRepositoryId: nonEmptyStringSchema,\n ref: nonEmptyStringSchema,\n headCommitSha: nonEmptyStringSchema,\n defaultBranch: nonEmptyStringSchema,\n isDefaultBranch: z.boolean(),\n});\nexport type SourcePushPayload = z.infer<typeof sourcePushSchema>;\n\nexport const INTEGRATION_SOURCE_COMMIT_PUSHED =\n 'integrations.source_control.commit_pushed' as const;\n\n// Typed, provider-agnostic source-control event. The producing provider owns the\n// translation from its raw webhook into this shape, so domain consumers never decode\n// provider payloads. `isDefaultBranch` is a fact; the branch policy lives in the consumer.\nexport const integrationSourceCommitPushedSchema = z.object({\n provider: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n connectionId: nonEmptyStringSchema,\n deliveryId: nonEmptyStringSchema,\n receivedAt: isoDateTimeSchema,\n push: sourcePushSchema,\n});\nexport type IntegrationSourceCommitPushedEvent = z.infer<\n typeof integrationSourceCommitPushedSchema\n>;\n\nexport const sourceRepositoryIdentitySchema = z.object({\n externalRepositoryId: nonEmptyStringSchema,\n owner: nonEmptyStringSchema,\n name: nonEmptyStringSchema,\n defaultBranch: nonEmptyStringSchema,\n});\nexport type SourceRepositoryIdentity = z.infer<typeof sourceRepositoryIdentitySchema>;\n\nexport const INTEGRATION_SOURCE_REPOSITORY_UPDATED =\n 'integrations.source_control.repository_updated' as const;\n\n// Typed, provider-agnostic source-control event. The producing provider owns the\n// translation from its raw webhook into this shape, so domain consumers never decode\n// provider payloads.\nexport const integrationSourceRepositoryUpdatedSchema = z.object({\n provider: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n connectionId: nonEmptyStringSchema,\n deliveryId: nonEmptyStringSchema,\n receivedAt: isoDateTimeSchema,\n repository: sourceRepositoryIdentitySchema,\n});\nexport type IntegrationSourceRepositoryUpdatedEvent = z.infer<\n typeof integrationSourceRepositoryUpdatedSchema\n>;\n\nexport interface SentryIssuePayload {\n action: SentryIssueAction;\n issueId: string;\n shortId: string | null;\n title: string;\n culprit: string | null;\n level: string | null;\n status: string | null;\n platform: string | null;\n webUrl: string | null;\n issueUrl: string | null;\n projectUrl: string | null;\n firstSeenAt: string | null;\n lastSeenAt: string | null;\n}\n\n// Single source of truth for Sentry issue actions: the sentry-dto webhook schema\n// builds its z.enum from this tuple, so accepted webhook actions and the published\n// SentryIssuePayload contract cannot drift.\nexport const SENTRY_ISSUE_ACTIONS = [\n 'created',\n 'resolved',\n 'assigned',\n 'archived',\n 'unresolved',\n] as const;\n\nexport type SentryIssueAction = (typeof SENTRY_ISSUE_ACTIONS)[number];\n\nexport interface IntegrationsEventMap {\n [INTEGRATION_CONNECTION_AVAILABLE]: IntegrationConnectionAvailableEvent;\n [INTEGRATION_EVENT_RECEIVED]: IntegrationEventReceivedEvent;\n [INTEGRATION_SOURCE_COMMIT_PUSHED]: IntegrationSourceCommitPushedEvent;\n [INTEGRATION_SOURCE_REPOSITORY_UPDATED]: IntegrationSourceRepositoryUpdatedEvent;\n}\n\nexport const integrationsEventSchemas = {\n [INTEGRATION_CONNECTION_AVAILABLE]: integrationConnectionAvailableSchema,\n [INTEGRATION_EVENT_RECEIVED]: integrationEventReceivedSchema,\n [INTEGRATION_SOURCE_COMMIT_PUSHED]: integrationSourceCommitPushedSchema,\n [INTEGRATION_SOURCE_REPOSITORY_UPDATED]: integrationSourceRepositoryUpdatedSchema,\n} satisfies Record<keyof IntegrationsEventMap, z.ZodType>;\n"],"names":["z","INTEGRATION_EVENT_RECEIVED","INTEGRATION_CONNECTION_AVAILABLE","nonEmptyStringSchema","string","nonempty","isoDateTimeSchema","datetime","requiredUnknownSchema","custom","value","undefined","nullableConnectionNameSchema","nullish","default","integrationEventReceivedSchema","object","provider","source","event","workspaceId","connectionId","connectionName","deliveryId","receivedAt","payload","integrationConnectionAvailableSchema","slug","sourcePushSchema","externalRepositoryId","ref","headCommitSha","defaultBranch","isDefaultBranch","boolean","INTEGRATION_SOURCE_COMMIT_PUSHED","integrationSourceCommitPushedSchema","push","sourceRepositoryIdentitySchema","owner","name","INTEGRATION_SOURCE_REPOSITORY_UPDATED","integrationSourceRepositoryUpdatedSchema","repository","SENTRY_ISSUE_ACTIONS","integrationsEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,6BAA6B,8BAAuC;AACjF,OAAO,MAAMC,mCAAmC,oCAA6C;AAE7F,MAAMC,uBAAuBH,EAAEI,MAAM,GAAGC,QAAQ;AAChD,MAAMC,oBAAoBN,EAAEI,MAAM,GAAGG,QAAQ;AAC7C,MAAMC,wBAAwBR,EAAES,MAAM,CAAU,CAACC,QAAUA,UAAUC;AACrE,MAAMC,+BAA+BT,qBAAqBU,OAAO,GAAGC,OAAO,CAAC;AAE5E,OAAO,MAAM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AO,MAAMC,2BAA2B;IACtC,CAAC3C,iCAAiC,EAAEwB;IACpC,CAACzB,2BAA2B,EAAEc;IAC9B,CAACoB,iCAAiC,EAAEC;IACpC,CAACK,sCAAsC,EAAEC;AAC3C,EAA0D"}
@@ -4,13 +4,13 @@ import { z } from 'zod';
4
4
  export declare const integrationsInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
5
5
  readonly module: "integrations";
6
6
  readonly methods: {
7
- readonly resolveSourceRepository: {
8
- readonly input: z.ZodObject<{
7
+ resolveSourceRepository: {
8
+ input: z.ZodObject<{
9
9
  workspaceId: z.ZodString;
10
10
  connectionId: z.ZodString;
11
11
  externalRepositoryId: z.ZodString;
12
12
  }, z.core.$strip>;
13
- readonly output: z.ZodObject<{
13
+ output: z.ZodObject<{
14
14
  connection: z.ZodObject<{
15
15
  id: z.ZodString;
16
16
  provider: z.ZodString;
@@ -23,16 +23,16 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
23
23
  fullName: z.ZodString;
24
24
  defaultBranch: z.ZodString;
25
25
  visibility: z.ZodEnum<{
26
- unknown: "unknown";
27
- public: "public";
28
- private: "private";
29
26
  internal: "internal";
27
+ private: "private";
28
+ public: "public";
29
+ unknown: "unknown";
30
30
  }>;
31
31
  cloneUrl: z.ZodString;
32
32
  htmlUrl: z.ZodString;
33
33
  }, z.core.$strip>;
34
34
  }, z.core.$strip>;
35
- readonly errors: {
35
+ errors: {
36
36
  'connection-not-found': z.ZodObject<{
37
37
  connectionId: z.ZodString;
38
38
  }, z.core.$strip>;
@@ -48,8 +48,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
48
48
  'capability-unavailable': z.ZodObject<{
49
49
  provider: z.ZodString;
50
50
  capability: z.ZodEnum<{
51
- source_control: "source_control";
52
51
  agent_tools: "agent_tools";
52
+ source_control: "source_control";
53
53
  }>;
54
54
  }, z.core.$strip>;
55
55
  'checkout-unsupported': z.ZodObject<{
@@ -61,30 +61,30 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
61
61
  }, z.core.$strip>;
62
62
  };
63
63
  };
64
- readonly resolveConnection: {
65
- readonly input: z.ZodObject<{
64
+ resolveConnection: {
65
+ input: z.ZodObject<{
66
66
  workspaceId: z.ZodString;
67
67
  slug: z.ZodString;
68
68
  }, z.core.$strip>;
69
- readonly output: z.ZodNullable<z.ZodObject<{
69
+ output: z.ZodNullable<z.ZodObject<{
70
70
  id: z.ZodString;
71
71
  provider: z.ZodString;
72
72
  slug: z.ZodString;
73
73
  }, z.core.$strip>>;
74
74
  };
75
- readonly resolveTriggerReference: {
76
- readonly input: z.ZodObject<{
75
+ resolveTriggerReference: {
76
+ input: z.ZodObject<{
77
77
  workspaceId: z.ZodString;
78
78
  connectionId: z.ZodString;
79
79
  payload: z.ZodUnknown;
80
80
  }, z.core.$strip>;
81
- readonly output: z.ZodNullable<z.ZodObject<{
81
+ output: z.ZodNullable<z.ZodObject<{
82
82
  externalRepositoryId: z.ZodString;
83
83
  ref: z.ZodString;
84
84
  commit: z.ZodString;
85
85
  actor: z.ZodNullable<z.ZodString>;
86
86
  }, z.core.$strip>>;
87
- readonly errors: {
87
+ errors: {
88
88
  'connection-not-found': z.ZodObject<{
89
89
  connectionId: z.ZodString;
90
90
  }, z.core.$strip>;
@@ -100,8 +100,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
100
100
  'capability-unavailable': z.ZodObject<{
101
101
  provider: z.ZodString;
102
102
  capability: z.ZodEnum<{
103
- source_control: "source_control";
104
103
  agent_tools: "agent_tools";
104
+ source_control: "source_control";
105
105
  }>;
106
106
  }, z.core.$strip>;
107
107
  'checkout-unsupported': z.ZodObject<{
@@ -113,8 +113,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
113
113
  }, z.core.$strip>;
114
114
  };
115
115
  };
116
- readonly listSourceFiles: {
117
- readonly input: z.ZodObject<{
116
+ listSourceFiles: {
117
+ input: z.ZodObject<{
118
118
  workspaceId: z.ZodString;
119
119
  connectionId: z.ZodString;
120
120
  externalRepositoryId: z.ZodString;
@@ -123,7 +123,7 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
123
123
  limit: z.ZodNumber;
124
124
  cursor: z.ZodOptional<z.ZodString>;
125
125
  }, z.core.$strip>;
126
- readonly output: z.ZodObject<{
126
+ output: z.ZodObject<{
127
127
  files: z.ZodArray<z.ZodObject<{
128
128
  path: z.ZodString;
129
129
  type: z.ZodLiteral<"file">;
@@ -131,7 +131,7 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
131
131
  }, z.core.$strip>>;
132
132
  nextCursor: z.ZodNullable<z.ZodString>;
133
133
  }, z.core.$strip>;
134
- readonly errors: {
134
+ errors: {
135
135
  'connection-not-found': z.ZodObject<{
136
136
  connectionId: z.ZodString;
137
137
  }, z.core.$strip>;
@@ -147,8 +147,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
147
147
  'capability-unavailable': z.ZodObject<{
148
148
  provider: z.ZodString;
149
149
  capability: z.ZodEnum<{
150
- source_control: "source_control";
151
150
  agent_tools: "agent_tools";
151
+ source_control: "source_control";
152
152
  }>;
153
153
  }, z.core.$strip>;
154
154
  'checkout-unsupported': z.ZodObject<{
@@ -160,20 +160,20 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
160
160
  }, z.core.$strip>;
161
161
  };
162
162
  };
163
- readonly fetchSourceFile: {
164
- readonly input: z.ZodObject<{
163
+ fetchSourceFile: {
164
+ input: z.ZodObject<{
165
165
  workspaceId: z.ZodString;
166
166
  connectionId: z.ZodString;
167
167
  externalRepositoryId: z.ZodString;
168
168
  ref: z.ZodString;
169
169
  path: z.ZodString;
170
170
  }, z.core.$strip>;
171
- readonly output: z.ZodObject<{
171
+ output: z.ZodObject<{
172
172
  path: z.ZodString;
173
173
  ref: z.ZodString;
174
174
  content: z.ZodString;
175
175
  }, z.core.$strip>;
176
- readonly errors: {
176
+ errors: {
177
177
  'connection-not-found': z.ZodObject<{
178
178
  connectionId: z.ZodString;
179
179
  }, z.core.$strip>;
@@ -189,8 +189,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
189
189
  'capability-unavailable': z.ZodObject<{
190
190
  provider: z.ZodString;
191
191
  capability: z.ZodEnum<{
192
- source_control: "source_control";
193
192
  agent_tools: "agent_tools";
193
+ source_control: "source_control";
194
194
  }>;
195
195
  }, z.core.$strip>;
196
196
  'checkout-unsupported': z.ZodObject<{
@@ -202,8 +202,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
202
202
  }, z.core.$strip>;
203
203
  };
204
204
  };
205
- readonly createCheckoutSpec: {
206
- readonly input: z.ZodObject<{
205
+ createCheckoutSpec: {
206
+ input: z.ZodObject<{
207
207
  workspaceId: z.ZodString;
208
208
  connectionId: z.ZodString;
209
209
  externalRepositoryId: z.ZodString;
@@ -215,7 +215,7 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
215
215
  }>;
216
216
  }, z.core.$strip>>;
217
217
  }, z.core.$strip>;
218
- readonly output: z.ZodObject<{
218
+ output: z.ZodObject<{
219
219
  repositoryUrl: z.ZodString;
220
220
  ref: z.ZodString;
221
221
  credentials: z.ZodOptional<z.ZodObject<{
@@ -228,7 +228,7 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
228
228
  email: z.ZodString;
229
229
  }, z.core.$strip>>;
230
230
  }, z.core.$strip>;
231
- readonly errors: {
231
+ errors: {
232
232
  'connection-not-found': z.ZodObject<{
233
233
  connectionId: z.ZodString;
234
234
  }, z.core.$strip>;
@@ -244,8 +244,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
244
244
  'capability-unavailable': z.ZodObject<{
245
245
  provider: z.ZodString;
246
246
  capability: z.ZodEnum<{
247
- source_control: "source_control";
248
247
  agent_tools: "agent_tools";
248
+ source_control: "source_control";
249
249
  }>;
250
250
  }, z.core.$strip>;
251
251
  'checkout-unsupported': z.ZodObject<{
@@ -257,20 +257,20 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
257
257
  }, z.core.$strip>;
258
258
  };
259
259
  };
260
- readonly getAgentToolsContext: {
261
- readonly input: z.ZodObject<{
260
+ getAgentToolsContext: {
261
+ input: z.ZodObject<{
262
262
  workspaceId: z.ZodString;
263
263
  defaultConnectionId: z.ZodString;
264
264
  }, z.core.$strip>;
265
- readonly output: z.ZodObject<{
265
+ output: z.ZodObject<{
266
266
  selectionCatalogs: z.ZodArray<z.ZodObject<{
267
267
  provider: z.ZodString;
268
268
  selectors: z.ZodArray<z.ZodObject<{
269
269
  token: z.ZodString;
270
270
  kind: z.ZodEnum<{
271
- method: "method";
272
271
  family: "family";
273
272
  family_wildcard: "family_wildcard";
273
+ method: "method";
274
274
  standalone: "standalone";
275
275
  }>;
276
276
  sensitivity: z.ZodEnum<{
@@ -310,8 +310,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
310
310
  id: z.ZodString;
311
311
  provider: z.ZodString;
312
312
  capabilities: z.ZodArray<z.ZodEnum<{
313
- source_control: "source_control";
314
313
  agent_tools: "agent_tools";
314
+ source_control: "source_control";
315
315
  }>>;
316
316
  }, z.core.$strip>>;
317
317
  defaultConnection: z.ZodNullable<z.ZodObject<{
@@ -320,7 +320,7 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
320
320
  provider: z.ZodString;
321
321
  }, z.core.$strip>>;
322
322
  }, z.core.$strip>;
323
- readonly errors: {
323
+ errors: {
324
324
  'connection-not-found': z.ZodObject<{
325
325
  connectionId: z.ZodString;
326
326
  }, z.core.$strip>;
@@ -336,8 +336,8 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
336
336
  'capability-unavailable': z.ZodObject<{
337
337
  provider: z.ZodString;
338
338
  capability: z.ZodEnum<{
339
- source_control: "source_control";
340
339
  agent_tools: "agent_tools";
340
+ source_control: "source_control";
341
341
  }>;
342
342
  }, z.core.$strip>;
343
343
  'checkout-unsupported': z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAqCtB,kFAAkF;AAClF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuG1C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
1
+ {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAqCtB,kFAAkF;AAClF,eAAO,MAAM,+BAA+B;;;QAGxC,uBAAuB;YACrB,KAAK;;;;;YACL,MAAM;;;;;;;;;;;;;;;;;;;;;;YACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAER,iBAAiB;YACf,KAAK;;;;YACL,MAAM;;;;;;QAER,uBAAuB;YACrB,KAAK;;;;;YACL,MAAM;;;;;;YACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAER,eAAe;YACb,KAAK;;;;;;;;;YAML,MAAM;;;;;;;;YAMN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAER,eAAe;YACb,KAAK;;;;;;;YACL,MAAM;;;;;YACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAER,kBAAkB;YAChB,KAAK;;;;;;;;;;;;YAIL,MAAM;;;;;;;;;;;;;YAQN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAER,oBAAoB;YAClB,KAAK;;;;YACL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8CN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGV,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -4,14 +4,14 @@ export declare const connectionSlugSchema: z.ZodString;
4
4
  export declare const integrationProviderKindSchema: z.ZodString;
5
5
  export type IntegrationProviderKindDto = z.infer<typeof integrationProviderKindSchema>;
6
6
  export declare const integrationCapabilitySchema: z.ZodEnum<{
7
- source_control: "source_control";
8
7
  agent_tools: "agent_tools";
8
+ source_control: "source_control";
9
9
  }>;
10
10
  export type IntegrationCapabilityDto = z.infer<typeof integrationCapabilitySchema>;
11
11
  export declare const integrationConnectionLifecycleStatusSchema: z.ZodEnum<{
12
- error: "error";
13
12
  active: "active";
14
13
  disabled: "disabled";
14
+ error: "error";
15
15
  }>;
16
16
  export type IntegrationConnectionLifecycleStatusDto = z.infer<typeof integrationConnectionLifecycleStatusSchema>;
17
17
  export declare const updateIntegrationConnectionLifecycleStatusSchema: z.ZodEnum<{
@@ -20,25 +20,25 @@ export declare const updateIntegrationConnectionLifecycleStatusSchema: z.ZodEnum
20
20
  }>;
21
21
  export type UpdateIntegrationConnectionLifecycleStatusDto = z.infer<typeof updateIntegrationConnectionLifecycleStatusSchema>;
22
22
  export declare const repositoryVisibilitySchema: z.ZodEnum<{
23
- unknown: "unknown";
24
- public: "public";
25
- private: "private";
26
23
  internal: "internal";
24
+ private: "private";
25
+ public: "public";
26
+ unknown: "unknown";
27
27
  }>;
28
28
  export type RepositoryVisibilityDto = z.infer<typeof repositoryVisibilitySchema>;
29
29
  export declare const integrationProviderDtoSchema: z.ZodObject<{
30
30
  provider: z.ZodString;
31
31
  display_name: z.ZodString;
32
32
  capabilities: z.ZodArray<z.ZodEnum<{
33
- source_control: "source_control";
34
33
  agent_tools: "agent_tools";
34
+ source_control: "source_control";
35
35
  }>>;
36
36
  }, z.core.$strip>;
37
37
  export type IntegrationProviderDto = z.infer<typeof integrationProviderDtoSchema>;
38
38
  export declare const listIntegrationProvidersQuerySchema: z.ZodObject<{
39
39
  capability: z.ZodOptional<z.ZodEnum<{
40
- source_control: "source_control";
41
40
  agent_tools: "agent_tools";
41
+ source_control: "source_control";
42
42
  }>>;
43
43
  }, z.core.$strip>;
44
44
  export type ListIntegrationProvidersQueryDto = z.infer<typeof listIntegrationProvidersQuerySchema>;
@@ -47,8 +47,8 @@ export declare const listIntegrationProvidersResponseSchema: z.ZodObject<{
47
47
  provider: z.ZodString;
48
48
  display_name: z.ZodString;
49
49
  capabilities: z.ZodArray<z.ZodEnum<{
50
- source_control: "source_control";
51
50
  agent_tools: "agent_tools";
51
+ source_control: "source_control";
52
52
  }>>;
53
53
  }, z.core.$strip>>;
54
54
  }, z.core.$strip>;
@@ -61,13 +61,13 @@ export declare const integrationConnectionDtoSchema: z.ZodObject<{
61
61
  slug: z.ZodString;
62
62
  display_name: z.ZodString;
63
63
  lifecycle_status: z.ZodEnum<{
64
- error: "error";
65
64
  active: "active";
66
65
  disabled: "disabled";
66
+ error: "error";
67
67
  }>;
68
68
  capabilities: z.ZodArray<z.ZodEnum<{
69
- source_control: "source_control";
70
69
  agent_tools: "agent_tools";
70
+ source_control: "source_control";
71
71
  }>>;
72
72
  external_url: z.ZodOptional<z.ZodString>;
73
73
  created_at: z.ZodString;
@@ -77,8 +77,8 @@ export type IntegrationConnectionDto = z.infer<typeof integrationConnectionDtoSc
77
77
  export declare const listIntegrationConnectionsQuerySchema: z.ZodObject<{
78
78
  workspace_id: z.ZodString;
79
79
  capability: z.ZodOptional<z.ZodEnum<{
80
- source_control: "source_control";
81
80
  agent_tools: "agent_tools";
81
+ source_control: "source_control";
82
82
  }>>;
83
83
  }, z.core.$strip>;
84
84
  export type ListIntegrationConnectionsQueryDto = z.infer<typeof listIntegrationConnectionsQuerySchema>;
@@ -91,13 +91,13 @@ export declare const listIntegrationConnectionsResponseSchema: z.ZodObject<{
91
91
  slug: z.ZodString;
92
92
  display_name: z.ZodString;
93
93
  lifecycle_status: z.ZodEnum<{
94
- error: "error";
95
94
  active: "active";
96
95
  disabled: "disabled";
96
+ error: "error";
97
97
  }>;
98
98
  capabilities: z.ZodArray<z.ZodEnum<{
99
- source_control: "source_control";
100
99
  agent_tools: "agent_tools";
100
+ source_control: "source_control";
101
101
  }>>;
102
102
  external_url: z.ZodOptional<z.ZodString>;
103
103
  created_at: z.ZodString;
@@ -130,10 +130,10 @@ export declare const repositoryDtoSchema: z.ZodObject<{
130
130
  full_name: z.ZodString;
131
131
  default_branch: z.ZodString;
132
132
  visibility: z.ZodEnum<{
133
- unknown: "unknown";
134
- public: "public";
135
- private: "private";
136
133
  internal: "internal";
134
+ private: "private";
135
+ public: "public";
136
+ unknown: "unknown";
137
137
  }>;
138
138
  clone_url: z.ZodString;
139
139
  html_url: z.ZodString;
@@ -148,10 +148,10 @@ export declare const listRepositoriesResponseSchema: z.ZodObject<{
148
148
  full_name: z.ZodString;
149
149
  default_branch: z.ZodString;
150
150
  visibility: z.ZodEnum<{
151
- unknown: "unknown";
152
- public: "public";
153
- private: "private";
154
151
  internal: "internal";
152
+ private: "private";
153
+ public: "public";
154
+ unknown: "unknown";
155
155
  }>;
156
156
  clone_url: z.ZodString;
157
157
  html_url: z.ZodString;