@shipfox/api-integration-github-dto 2.0.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.
@@ -0,0 +1,2 @@
1
+ $ shipfox-swc
2
+ Successfully compiled: 4 files with swc (31.37ms)
@@ -0,0 +1 @@
1
+ $ shipfox-tsc-emit
@@ -0,0 +1 @@
1
+ $ shipfox-tsc-check
package/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # @shipfox/api-integration-github-dto
2
+
3
+ ## 2.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1b0d344: Publishes the complete API runtime closure with packed-consumer-safe internal imports and records its exact package set in application releases.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1b0d344]
12
+ - @shipfox/api-integration-core-dto@2.0.0
13
+
14
+ ## 0.0.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [115655e]
19
+ - Updated dependencies [ce062a9]
20
+ - Updated dependencies [f3614ae]
21
+ - Updated dependencies [f8f339a]
22
+ - Updated dependencies [b8e49ff]
23
+ - Updated dependencies [d6d4862]
24
+ - Updated dependencies [01be723]
25
+ - Updated dependencies [2933c33]
26
+ - @shipfox/api-integration-core-dto@0.1.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shipfox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ export * from './schemas/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './schemas/index.js';
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './schemas/index.js';\n"],"names":[],"mappings":"AAAA,cAAc,qBAAqB"}
@@ -0,0 +1,67 @@
1
+ import { z } from 'zod';
2
+ export declare const createGithubInstallBodySchema: z.ZodObject<{
3
+ workspace_id: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export type CreateGithubInstallBodyDto = z.infer<typeof createGithubInstallBodySchema>;
6
+ export declare const createGithubInstallResponseSchema: z.ZodObject<{
7
+ install_url: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export type CreateGithubInstallResponseDto = z.infer<typeof createGithubInstallResponseSchema>;
10
+ export declare const githubCallbackQuerySchema: z.ZodObject<{
11
+ code: z.ZodString;
12
+ installation_id: z.ZodCoercedNumber<unknown>;
13
+ state: z.ZodString;
14
+ setup_action: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export type GithubCallbackQueryDto = z.infer<typeof githubCallbackQuerySchema>;
17
+ export declare const githubCallbackResponseSchema: z.ZodObject<{
18
+ id: z.ZodString;
19
+ workspace_id: z.ZodString;
20
+ provider: z.ZodString;
21
+ external_account_id: z.ZodString;
22
+ slug: z.ZodString;
23
+ display_name: z.ZodString;
24
+ lifecycle_status: z.ZodEnum<{
25
+ error: "error";
26
+ active: "active";
27
+ disabled: "disabled";
28
+ }>;
29
+ capabilities: z.ZodArray<z.ZodEnum<{
30
+ source_control: "source_control";
31
+ agent_tools: "agent_tools";
32
+ }>>;
33
+ external_url: z.ZodOptional<z.ZodString>;
34
+ created_at: z.ZodString;
35
+ updated_at: z.ZodString;
36
+ }, z.core.$strip>;
37
+ export type GithubCallbackResponseDto = z.infer<typeof githubCallbackResponseSchema>;
38
+ export declare const createE2eGithubConnectionBodySchema: z.ZodObject<{
39
+ workspace_id: z.ZodString;
40
+ installation_id: z.ZodNumber;
41
+ account_login: z.ZodString;
42
+ display_name: z.ZodString;
43
+ installer_user_id: z.ZodString;
44
+ }, z.core.$strip>;
45
+ export type CreateE2eGithubConnectionBodyDto = z.infer<typeof createE2eGithubConnectionBodySchema>;
46
+ export declare const createE2eGithubConnectionResponseSchema: z.ZodObject<{
47
+ id: z.ZodString;
48
+ workspace_id: z.ZodString;
49
+ provider: z.ZodString;
50
+ external_account_id: z.ZodString;
51
+ slug: z.ZodString;
52
+ display_name: z.ZodString;
53
+ lifecycle_status: z.ZodEnum<{
54
+ error: "error";
55
+ active: "active";
56
+ disabled: "disabled";
57
+ }>;
58
+ capabilities: z.ZodArray<z.ZodEnum<{
59
+ source_control: "source_control";
60
+ agent_tools: "agent_tools";
61
+ }>>;
62
+ external_url: z.ZodOptional<z.ZodString>;
63
+ created_at: z.ZodString;
64
+ updated_at: z.ZodString;
65
+ }, z.core.$strip>;
66
+ export type CreateE2eGithubConnectionResponseDto = z.infer<typeof createE2eGithubConnectionResponseSchema>;
67
+ //# sourceMappingURL=github.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/schemas/github.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE/F,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;iBAAiC,CAAC;AAC3E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,mCAAmC;;;;;;iBAM9C,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEnG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;iBAAiC,CAAC;AACtF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,uCAAuC,CAC/C,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { integrationConnectionDtoSchema } from '@shipfox/api-integration-core-dto';
2
+ import { z } from 'zod';
3
+ export const createGithubInstallBodySchema = z.object({
4
+ workspace_id: z.string().uuid()
5
+ });
6
+ export const createGithubInstallResponseSchema = z.object({
7
+ install_url: z.string().url()
8
+ });
9
+ export const githubCallbackQuerySchema = z.object({
10
+ code: z.string().min(1),
11
+ installation_id: z.coerce.number().int().positive(),
12
+ state: z.string().min(1),
13
+ setup_action: z.string().optional()
14
+ });
15
+ export const githubCallbackResponseSchema = integrationConnectionDtoSchema;
16
+ export const createE2eGithubConnectionBodySchema = z.object({
17
+ workspace_id: z.string().uuid(),
18
+ installation_id: z.number().int().positive(),
19
+ account_login: z.string().min(1),
20
+ display_name: z.string().min(1),
21
+ installer_user_id: z.string().uuid()
22
+ });
23
+ export const createE2eGithubConnectionResponseSchema = integrationConnectionDtoSchema;
24
+
25
+ //# sourceMappingURL=github.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/github.ts"],"sourcesContent":["import {integrationConnectionDtoSchema} from '@shipfox/api-integration-core-dto';\nimport {z} from 'zod';\n\nexport const createGithubInstallBodySchema = z.object({\n workspace_id: z.string().uuid(),\n});\nexport type CreateGithubInstallBodyDto = z.infer<typeof createGithubInstallBodySchema>;\n\nexport const createGithubInstallResponseSchema = z.object({\n install_url: z.string().url(),\n});\nexport type CreateGithubInstallResponseDto = z.infer<typeof createGithubInstallResponseSchema>;\n\nexport const githubCallbackQuerySchema = z.object({\n code: z.string().min(1),\n installation_id: z.coerce.number().int().positive(),\n state: z.string().min(1),\n setup_action: z.string().optional(),\n});\nexport type GithubCallbackQueryDto = z.infer<typeof githubCallbackQuerySchema>;\n\nexport const githubCallbackResponseSchema = integrationConnectionDtoSchema;\nexport type GithubCallbackResponseDto = z.infer<typeof githubCallbackResponseSchema>;\n\nexport const createE2eGithubConnectionBodySchema = z.object({\n workspace_id: z.string().uuid(),\n installation_id: z.number().int().positive(),\n account_login: z.string().min(1),\n display_name: z.string().min(1),\n installer_user_id: z.string().uuid(),\n});\nexport type CreateE2eGithubConnectionBodyDto = z.infer<typeof createE2eGithubConnectionBodySchema>;\n\nexport const createE2eGithubConnectionResponseSchema = integrationConnectionDtoSchema;\nexport type CreateE2eGithubConnectionResponseDto = z.infer<\n typeof createE2eGithubConnectionResponseSchema\n>;\n"],"names":["integrationConnectionDtoSchema","z","createGithubInstallBodySchema","object","workspace_id","string","uuid","createGithubInstallResponseSchema","install_url","url","githubCallbackQuerySchema","code","min","installation_id","coerce","number","int","positive","state","setup_action","optional","githubCallbackResponseSchema","createE2eGithubConnectionBodySchema","account_login","display_name","installer_user_id","createE2eGithubConnectionResponseSchema"],"mappings":"AAAA,SAAQA,8BAA8B,QAAO,oCAAoC;AACjF,SAAQC,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,gCAAgCD,EAAEE,MAAM,CAAC;IACpDC,cAAcH,EAAEI,MAAM,GAAGC,IAAI;AAC/B,GAAG;AAGH,OAAO,MAAMC,oCAAoCN,EAAEE,MAAM,CAAC;IACxDK,aAAaP,EAAEI,MAAM,GAAGI,GAAG;AAC7B,GAAG;AAGH,OAAO,MAAMC,4BAA4BT,EAAEE,MAAM,CAAC;IAChDQ,MAAMV,EAAEI,MAAM,GAAGO,GAAG,CAAC;IACrBC,iBAAiBZ,EAAEa,MAAM,CAACC,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IACjDC,OAAOjB,EAAEI,MAAM,GAAGO,GAAG,CAAC;IACtBO,cAAclB,EAAEI,MAAM,GAAGe,QAAQ;AACnC,GAAG;AAGH,OAAO,MAAMC,+BAA+BrB,+BAA+B;AAG3E,OAAO,MAAMsB,sCAAsCrB,EAAEE,MAAM,CAAC;IAC1DC,cAAcH,EAAEI,MAAM,GAAGC,IAAI;IAC7BO,iBAAiBZ,EAAEc,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAC1CM,eAAetB,EAAEI,MAAM,GAAGO,GAAG,CAAC;IAC9BY,cAAcvB,EAAEI,MAAM,GAAGO,GAAG,CAAC;IAC7Ba,mBAAmBxB,EAAEI,MAAM,GAAGC,IAAI;AACpC,GAAG;AAGH,OAAO,MAAMoB,0CAA0C1B,+BAA+B"}
@@ -0,0 +1,3 @@
1
+ export * from './github.js';
2
+ export * from './webhooks.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './github.js';
2
+ export * from './webhooks.js';
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export * from './github.js';\nexport * from './webhooks.js';\n"],"names":[],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,gBAAgB"}
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare const githubPushPayloadSchema: z.ZodObject<{
3
+ ref: z.ZodString;
4
+ after: z.ZodString;
5
+ repository: z.ZodObject<{
6
+ id: z.ZodNumber;
7
+ default_branch: z.ZodString;
8
+ }, z.core.$strip>;
9
+ installation: z.ZodOptional<z.ZodObject<{
10
+ id: z.ZodNumber;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ export type GithubPushPayloadDto = z.infer<typeof githubPushPayloadSchema>;
14
+ export declare const githubWebhookActionSchema: z.ZodObject<{
15
+ action: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ export type GithubWebhookActionDto = z.infer<typeof githubWebhookActionSchema>;
18
+ export declare const githubWebhookInstallationSchema: z.ZodObject<{
19
+ installation: z.ZodOptional<z.ZodObject<{
20
+ id: z.ZodNumber;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>;
23
+ export type GithubWebhookInstallationDto = z.infer<typeof githubWebhookInstallationSchema>;
24
+ export declare const githubWebhookEnvelopeSchema: z.ZodObject<{
25
+ action: z.ZodOptional<z.ZodString>;
26
+ installation: z.ZodOptional<z.ZodObject<{
27
+ id: z.ZodNumber;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>;
30
+ export type GithubWebhookEnvelopeDto = z.infer<typeof githubWebhookEnvelopeSchema>;
31
+ //# sourceMappingURL=webhooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/schemas/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAQlC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,+BAA+B;;;;iBAE1C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE3F,eAAO,MAAM,2BAA2B;;;;;iBAEvC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ export const githubPushPayloadSchema = z.object({
3
+ ref: z.string().min(1),
4
+ after: z.string().min(1),
5
+ repository: z.object({
6
+ id: z.number().int().positive(),
7
+ default_branch: z.string().min(1)
8
+ }),
9
+ installation: z.object({
10
+ id: z.number().int().positive()
11
+ }).optional()
12
+ });
13
+ export const githubWebhookActionSchema = z.object({
14
+ action: z.string().min(1).optional()
15
+ });
16
+ export const githubWebhookInstallationSchema = z.object({
17
+ installation: z.object({
18
+ id: z.number().int().positive()
19
+ }).optional()
20
+ });
21
+ export const githubWebhookEnvelopeSchema = githubWebhookActionSchema.merge(githubWebhookInstallationSchema);
22
+
23
+ //# sourceMappingURL=webhooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/webhooks.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const githubPushPayloadSchema = z.object({\n ref: z.string().min(1),\n after: z.string().min(1),\n repository: z.object({\n id: z.number().int().positive(),\n default_branch: z.string().min(1),\n }),\n installation: z.object({id: z.number().int().positive()}).optional(),\n});\nexport type GithubPushPayloadDto = z.infer<typeof githubPushPayloadSchema>;\n\nexport const githubWebhookActionSchema = z.object({\n action: z.string().min(1).optional(),\n});\nexport type GithubWebhookActionDto = z.infer<typeof githubWebhookActionSchema>;\n\nexport const githubWebhookInstallationSchema = z.object({\n installation: z.object({id: z.number().int().positive()}).optional(),\n});\nexport type GithubWebhookInstallationDto = z.infer<typeof githubWebhookInstallationSchema>;\n\nexport const githubWebhookEnvelopeSchema = githubWebhookActionSchema.merge(\n githubWebhookInstallationSchema,\n);\nexport type GithubWebhookEnvelopeDto = z.infer<typeof githubWebhookEnvelopeSchema>;\n"],"names":["z","githubPushPayloadSchema","object","ref","string","min","after","repository","id","number","int","positive","default_branch","installation","optional","githubWebhookActionSchema","action","githubWebhookInstallationSchema","githubWebhookEnvelopeSchema","merge"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,0BAA0BD,EAAEE,MAAM,CAAC;IAC9CC,KAAKH,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACpBC,OAAON,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACtBE,YAAYP,EAAEE,MAAM,CAAC;QACnBM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;QAC7BC,gBAAgBZ,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACjC;IACAQ,cAAcb,EAAEE,MAAM,CAAC;QAACM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAAE,GAAGG,QAAQ;AACpE,GAAG;AAGH,OAAO,MAAMC,4BAA4Bf,EAAEE,MAAM,CAAC;IAChDc,QAAQhB,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGS,QAAQ;AACpC,GAAG;AAGH,OAAO,MAAMG,kCAAkCjB,EAAEE,MAAM,CAAC;IACtDW,cAAcb,EAAEE,MAAM,CAAC;QAACM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAAE,GAAGG,QAAQ;AACpE,GAAG;AAGH,OAAO,MAAMI,8BAA8BH,0BAA0BI,KAAK,CACxEF,iCACA"}