@shipfox/api-integration-core-dto 6.0.0 → 9.0.1

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.
Files changed (60) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +25 -0
  3. package/dist/event-catalog.d.ts +15 -0
  4. package/dist/event-catalog.d.ts.map +1 -0
  5. package/dist/event-catalog.js +3 -0
  6. package/dist/event-catalog.js.map +1 -0
  7. package/dist/index.d.ts +1 -5
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1 -5
  10. package/dist/index.js.map +1 -1
  11. package/dist/inter-module.d.ts +1 -1
  12. package/dist/schemas/index.d.ts +1 -1
  13. package/dist/schemas/index.d.ts.map +1 -1
  14. package/dist/schemas/index.js +1 -1
  15. package/dist/schemas/index.js.map +1 -1
  16. package/dist/schemas/integrations.d.ts +2 -2
  17. package/dist/schemas/integrations.d.ts.map +1 -1
  18. package/dist/schemas/integrations.js +2 -2
  19. package/dist/schemas/integrations.js.map +1 -1
  20. package/dist/tsconfig.test.tsbuildinfo +1 -1
  21. package/dist/webhooks.d.ts +0 -5
  22. package/dist/webhooks.d.ts.map +1 -1
  23. package/dist/webhooks.js +0 -17
  24. package/dist/webhooks.js.map +1 -1
  25. package/package.json +8 -13
  26. package/src/event-catalog.ts +16 -0
  27. package/src/index.ts +1 -5
  28. package/src/inter-module.test.ts +38 -0
  29. package/src/schemas/index.ts +1 -0
  30. package/src/schemas/integrations.ts +7 -2
  31. package/src/webhooks.test.ts +20 -1
  32. package/src/webhooks.ts +0 -24
  33. package/tsconfig.build.tsbuildinfo +1 -1
  34. package/dist/contracts/index.d.ts +0 -4
  35. package/dist/contracts/index.d.ts.map +0 -1
  36. package/dist/contracts/index.js +0 -3
  37. package/dist/contracts/index.js.map +0 -1
  38. package/dist/contracts/integrations.d.ts +0 -206
  39. package/dist/contracts/integrations.d.ts.map +0 -1
  40. package/dist/contracts/integrations.js +0 -44
  41. package/dist/contracts/integrations.js.map +0 -1
  42. package/dist/errors.d.ts +0 -4
  43. package/dist/errors.d.ts.map +0 -1
  44. package/dist/errors.js +0 -10
  45. package/dist/errors.js.map +0 -1
  46. package/dist/ports.d.ts +0 -66
  47. package/dist/ports.d.ts.map +0 -1
  48. package/dist/ports.js +0 -3
  49. package/dist/ports.js.map +0 -1
  50. package/dist/slug.d.ts +0 -7
  51. package/dist/slug.d.ts.map +0 -1
  52. package/dist/slug.js +0 -14
  53. package/dist/slug.js.map +0 -1
  54. package/src/contracts/index.ts +0 -48
  55. package/src/contracts/integrations.test.ts +0 -64
  56. package/src/contracts/integrations.ts +0 -325
  57. package/src/errors.ts +0 -6
  58. package/src/ports.ts +0 -79
  59. package/src/slug.test.ts +0 -32
  60. package/src/slug.ts +0 -26
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 12 files with swc (389.15ms)
2
+ Successfully compiled: 8 files with swc (276.05ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @shipfox/api-integration-core-dto
2
2
 
3
+ ## 9.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 475ce59: Republishes all public packages after restoring release authorization.
8
+ - Updated dependencies [475ce59]
9
+ - @shipfox/inter-module@0.2.1
10
+
11
+ ## 9.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - 02974d6: Removes executable policy and test fixtures from public API DTO roots.
16
+ - 4a6d124: Separates Integrations provider SPI contracts from the public DTO surface.
17
+
18
+ ### Patch Changes
19
+
20
+ - @shipfox/inter-module@0.2.0
21
+
22
+ ## 8.0.0
23
+
24
+ ### Major Changes
25
+
26
+ - 7f227c6: Moves Projects and Integrations synchronous contracts to producer-owned inter-module entry points.
27
+
3
28
  ## 6.0.0
4
29
 
5
30
  ### Minor Changes
@@ -0,0 +1,15 @@
1
+ export type IntegrationEventPayloadKind = 'raw-provider' | 'shipfox-normalized';
2
+ export interface IntegrationEventDoc {
3
+ name: string;
4
+ summary: string;
5
+ emittedWhen: string;
6
+ payloadKind: IntegrationEventPayloadKind;
7
+ payloadDocUrl?: string | undefined;
8
+ }
9
+ export interface IntegrationEventCatalog {
10
+ provider: string;
11
+ passthrough?: boolean | undefined;
12
+ upstreamEventsDocUrl?: string | undefined;
13
+ events: readonly IntegrationEventDoc[];
14
+ }
15
+ //# sourceMappingURL=event-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-catalog.d.ts","sourceRoot":"","sources":["../src/event-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GAAG,cAAc,GAAG,oBAAoB,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,2BAA2B,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACxC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=event-catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/event-catalog.ts"],"sourcesContent":["export type IntegrationEventPayloadKind = 'raw-provider' | 'shipfox-normalized';\n\nexport interface IntegrationEventDoc {\n name: string;\n summary: string;\n emittedWhen: string;\n payloadKind: IntegrationEventPayloadKind;\n payloadDocUrl?: string | undefined;\n}\n\nexport interface IntegrationEventCatalog {\n provider: string;\n passthrough?: boolean | undefined;\n upstreamEventsDocUrl?: string | undefined;\n events: readonly IntegrationEventDoc[];\n}\n"],"names":[],"mappings":"AAUA,WAKC"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,5 @@
1
- export * from '#contracts/index.js';
2
- export * from '#errors.js';
1
+ export * from '#event-catalog.js';
3
2
  export * from '#events.js';
4
- export * from '#inter-module.js';
5
- export * from '#ports.js';
6
3
  export * from '#schemas/index.js';
7
- export * from '#slug.js';
8
4
  export * from '#webhooks.js';
9
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -1,10 +1,6 @@
1
- export * from '#contracts/index.js';
2
- export * from '#errors.js';
1
+ export * from '#event-catalog.js';
3
2
  export * from '#events.js';
4
- export * from '#inter-module.js';
5
- export * from '#ports.js';
6
3
  export * from '#schemas/index.js';
7
- export * from '#slug.js';
8
4
  export * from '#webhooks.js';
9
5
 
10
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from '#contracts/index.js';\nexport * from '#errors.js';\nexport * from '#events.js';\nexport * from '#inter-module.js';\nexport * from '#ports.js';\nexport * from '#schemas/index.js';\nexport * from '#slug.js';\nexport * from '#webhooks.js';\n"],"names":[],"mappings":"AAAA,cAAc,sBAAsB;AACpC,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,mBAAmB;AACjC,cAAc,YAAY;AAC1B,cAAc,oBAAoB;AAClC,cAAc,WAAW;AACzB,cAAc,eAAe"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from '#event-catalog.js';\nexport * from '#events.js';\nexport * from '#schemas/index.js';\nexport * from '#webhooks.js';\n"],"names":[],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,aAAa;AAC3B,cAAc,oBAAoB;AAClC,cAAc,eAAe"}
@@ -216,9 +216,9 @@ export declare const integrationsInterModuleContract: import("@shipfox/inter-mod
216
216
  selectors: z.ZodArray<z.ZodObject<{
217
217
  token: z.ZodString;
218
218
  kind: z.ZodEnum<{
219
+ method: "method";
219
220
  family: "family";
220
221
  family_wildcard: "family_wildcard";
221
- method: "method";
222
222
  standalone: "standalone";
223
223
  }>;
224
224
  sensitivity: z.ZodEnum<{
@@ -1,2 +1,2 @@
1
- export { connectionSlugSchema, type IntegrationCapabilityDto, type IntegrationConnectionDto, type IntegrationConnectionLifecycleStatusDto, type IntegrationProviderDto, type IntegrationProviderKindDto, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, type ListIntegrationConnectionsQueryDto, type ListIntegrationConnectionsResponseDto, type ListIntegrationProvidersQueryDto, type ListIntegrationProvidersResponseDto, type ListRepositoriesParamsDto, type ListRepositoriesQueryDto, type ListRepositoriesResponseDto, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, type RepositoryDto, type RepositoryVisibilityDto, repositoryDtoSchema, repositoryVisibilitySchema, type UpdateIntegrationConnectionBodyDto, type UpdateIntegrationConnectionLifecycleStatusDto, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema, } from './integrations.js';
1
+ export { CONNECTION_SLUG_MAX_LENGTH, connectionSlugSchema, type IntegrationCapabilityDto, type IntegrationConnectionDto, type IntegrationConnectionLifecycleStatusDto, type IntegrationProviderDto, type IntegrationProviderKindDto, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, type ListIntegrationConnectionsQueryDto, type ListIntegrationConnectionsResponseDto, type ListIntegrationProvidersQueryDto, type ListIntegrationProvidersResponseDto, type ListRepositoriesParamsDto, type ListRepositoriesQueryDto, type ListRepositoriesResponseDto, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, type RepositoryDto, type RepositoryVisibilityDto, repositoryDtoSchema, repositoryVisibilitySchema, type UpdateIntegrationConnectionBodyDto, type UpdateIntegrationConnectionLifecycleStatusDto, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema, } from './integrations.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uCAAuC,EAC5C,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,qCAAqC,EACrC,wCAAwC,EACxC,mCAAmC,EACnC,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,kCAAkC,EACvC,KAAK,6CAA6C,EAClD,qCAAqC,EACrC,gDAAgD,GACjD,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uCAAuC,EAC5C,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,qCAAqC,EACrC,wCAAwC,EACxC,mCAAmC,EACnC,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,kCAAkC,EACvC,KAAK,6CAA6C,EAClD,qCAAqC,EACrC,gDAAgD,GACjD,MAAM,mBAAmB,CAAC"}
@@ -1,3 +1,3 @@
1
- export { connectionSlugSchema, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, repositoryDtoSchema, repositoryVisibilitySchema, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema } from './integrations.js';
1
+ export { CONNECTION_SLUG_MAX_LENGTH, connectionSlugSchema, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, repositoryDtoSchema, repositoryVisibilitySchema, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema } from './integrations.js';
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n connectionSlugSchema,\n type IntegrationCapabilityDto,\n type IntegrationConnectionDto,\n type IntegrationConnectionLifecycleStatusDto,\n type IntegrationProviderDto,\n type IntegrationProviderKindDto,\n integrationCapabilitySchema,\n integrationConnectionDtoSchema,\n integrationConnectionLifecycleStatusSchema,\n integrationProviderDtoSchema,\n integrationProviderKindSchema,\n type ListIntegrationConnectionsQueryDto,\n type ListIntegrationConnectionsResponseDto,\n type ListIntegrationProvidersQueryDto,\n type ListIntegrationProvidersResponseDto,\n type ListRepositoriesParamsDto,\n type ListRepositoriesQueryDto,\n type ListRepositoriesResponseDto,\n listIntegrationConnectionsQuerySchema,\n listIntegrationConnectionsResponseSchema,\n listIntegrationProvidersQuerySchema,\n listIntegrationProvidersResponseSchema,\n listRepositoriesParamsSchema,\n listRepositoriesQuerySchema,\n listRepositoriesResponseSchema,\n type RepositoryDto,\n type RepositoryVisibilityDto,\n repositoryDtoSchema,\n repositoryVisibilitySchema,\n type UpdateIntegrationConnectionBodyDto,\n type UpdateIntegrationConnectionLifecycleStatusDto,\n updateIntegrationConnectionBodySchema,\n updateIntegrationConnectionLifecycleStatusSchema,\n} from './integrations.js';\n"],"names":["connectionSlugSchema","integrationCapabilitySchema","integrationConnectionDtoSchema","integrationConnectionLifecycleStatusSchema","integrationProviderDtoSchema","integrationProviderKindSchema","listIntegrationConnectionsQuerySchema","listIntegrationConnectionsResponseSchema","listIntegrationProvidersQuerySchema","listIntegrationProvidersResponseSchema","listRepositoriesParamsSchema","listRepositoriesQuerySchema","listRepositoriesResponseSchema","repositoryDtoSchema","repositoryVisibilitySchema","updateIntegrationConnectionBodySchema","updateIntegrationConnectionLifecycleStatusSchema"],"mappings":"AAAA,SACEA,oBAAoB,EAMpBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,0CAA0C,EAC1CC,4BAA4B,EAC5BC,6BAA6B,EAQ7BC,qCAAqC,EACrCC,wCAAwC,EACxCC,mCAAmC,EACnCC,sCAAsC,EACtCC,4BAA4B,EAC5BC,2BAA2B,EAC3BC,8BAA8B,EAG9BC,mBAAmB,EACnBC,0BAA0B,EAG1BC,qCAAqC,EACrCC,gDAAgD,QAC3C,oBAAoB"}
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n CONNECTION_SLUG_MAX_LENGTH,\n connectionSlugSchema,\n type IntegrationCapabilityDto,\n type IntegrationConnectionDto,\n type IntegrationConnectionLifecycleStatusDto,\n type IntegrationProviderDto,\n type IntegrationProviderKindDto,\n integrationCapabilitySchema,\n integrationConnectionDtoSchema,\n integrationConnectionLifecycleStatusSchema,\n integrationProviderDtoSchema,\n integrationProviderKindSchema,\n type ListIntegrationConnectionsQueryDto,\n type ListIntegrationConnectionsResponseDto,\n type ListIntegrationProvidersQueryDto,\n type ListIntegrationProvidersResponseDto,\n type ListRepositoriesParamsDto,\n type ListRepositoriesQueryDto,\n type ListRepositoriesResponseDto,\n listIntegrationConnectionsQuerySchema,\n listIntegrationConnectionsResponseSchema,\n listIntegrationProvidersQuerySchema,\n listIntegrationProvidersResponseSchema,\n listRepositoriesParamsSchema,\n listRepositoriesQuerySchema,\n listRepositoriesResponseSchema,\n type RepositoryDto,\n type RepositoryVisibilityDto,\n repositoryDtoSchema,\n repositoryVisibilitySchema,\n type UpdateIntegrationConnectionBodyDto,\n type UpdateIntegrationConnectionLifecycleStatusDto,\n updateIntegrationConnectionBodySchema,\n updateIntegrationConnectionLifecycleStatusSchema,\n} from './integrations.js';\n"],"names":["CONNECTION_SLUG_MAX_LENGTH","connectionSlugSchema","integrationCapabilitySchema","integrationConnectionDtoSchema","integrationConnectionLifecycleStatusSchema","integrationProviderDtoSchema","integrationProviderKindSchema","listIntegrationConnectionsQuerySchema","listIntegrationConnectionsResponseSchema","listIntegrationProvidersQuerySchema","listIntegrationProvidersResponseSchema","listRepositoriesParamsSchema","listRepositoriesQuerySchema","listRepositoriesResponseSchema","repositoryDtoSchema","repositoryVisibilitySchema","updateIntegrationConnectionBodySchema","updateIntegrationConnectionLifecycleStatusSchema"],"mappings":"AAAA,SACEA,0BAA0B,EAC1BC,oBAAoB,EAMpBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,0CAA0C,EAC1CC,4BAA4B,EAC5BC,6BAA6B,EAQ7BC,qCAAqC,EACrCC,wCAAwC,EACxCC,mCAAmC,EACnCC,sCAAsC,EACtCC,4BAA4B,EAC5BC,2BAA2B,EAC3BC,8BAA8B,EAG9BC,mBAAmB,EACnBC,0BAA0B,EAG1BC,qCAAqC,EACrCC,gDAAgD,QAC3C,oBAAoB"}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { connectionSlugSchema } from '#slug.js';
3
- export { connectionSlugSchema };
2
+ export declare const CONNECTION_SLUG_MAX_LENGTH = 100;
3
+ 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<{
@@ -1 +1 @@
1
- {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/schemas/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,oBAAoB,EAAC,MAAM,UAAU,CAAC;AAE9C,OAAO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;;iBAEnD,CAAC;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;iBAEhD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEnF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAU9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;iBAGzC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { connectionSlugSchema } from '#slug.js';
3
- export { connectionSlugSchema };
2
+ export const CONNECTION_SLUG_MAX_LENGTH = 100;
3
+ export const connectionSlugSchema = z.string().min(1).max(CONNECTION_SLUG_MAX_LENGTH).regex(/^[a-z0-9]+(?:[_-][a-z0-9]+)*$/);
4
4
  export const integrationProviderKindSchema = z.string().min(1);
5
5
  export const integrationCapabilitySchema = z.enum([
6
6
  'source_control',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/integrations.ts"],"sourcesContent":["import {z} from 'zod';\nimport {connectionSlugSchema} from '#slug.js';\n\nexport {connectionSlugSchema};\n\nexport const integrationProviderKindSchema = z.string().min(1);\nexport type IntegrationProviderKindDto = z.infer<typeof integrationProviderKindSchema>;\n\nexport const integrationCapabilitySchema = z.enum(['source_control', 'agent_tools']);\nexport type IntegrationCapabilityDto = z.infer<typeof integrationCapabilitySchema>;\n\nexport const integrationConnectionLifecycleStatusSchema = z.enum(['active', 'disabled', 'error']);\nexport type IntegrationConnectionLifecycleStatusDto = z.infer<\n typeof integrationConnectionLifecycleStatusSchema\n>;\nexport const updateIntegrationConnectionLifecycleStatusSchema = z.enum(['active', 'disabled']);\nexport type UpdateIntegrationConnectionLifecycleStatusDto = z.infer<\n typeof updateIntegrationConnectionLifecycleStatusSchema\n>;\n\nexport const repositoryVisibilitySchema = z.enum(['public', 'private', 'internal', 'unknown']);\nexport type RepositoryVisibilityDto = z.infer<typeof repositoryVisibilitySchema>;\n\nexport const integrationProviderDtoSchema = z.object({\n provider: integrationProviderKindSchema,\n display_name: z.string(),\n capabilities: z.array(integrationCapabilitySchema),\n});\nexport type IntegrationProviderDto = z.infer<typeof integrationProviderDtoSchema>;\n\nexport const listIntegrationProvidersQuerySchema = z.object({\n capability: integrationCapabilitySchema.optional(),\n});\nexport type ListIntegrationProvidersQueryDto = z.infer<typeof listIntegrationProvidersQuerySchema>;\n\nexport const listIntegrationProvidersResponseSchema = z.object({\n providers: z.array(integrationProviderDtoSchema),\n});\nexport type ListIntegrationProvidersResponseDto = z.infer<\n typeof listIntegrationProvidersResponseSchema\n>;\n\nexport const integrationConnectionDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n provider: integrationProviderKindSchema,\n external_account_id: z.string(),\n slug: connectionSlugSchema,\n display_name: z.string(),\n lifecycle_status: integrationConnectionLifecycleStatusSchema,\n capabilities: z.array(integrationCapabilitySchema),\n external_url: z.string().url().optional(),\n created_at: z.string(),\n updated_at: z.string(),\n});\nexport type IntegrationConnectionDto = z.infer<typeof integrationConnectionDtoSchema>;\n\nexport const listIntegrationConnectionsQuerySchema = z.object({\n workspace_id: z.string().uuid(),\n capability: integrationCapabilitySchema.optional(),\n});\nexport type ListIntegrationConnectionsQueryDto = z.infer<\n typeof listIntegrationConnectionsQuerySchema\n>;\n\nexport const listIntegrationConnectionsResponseSchema = z.object({\n connections: z.array(integrationConnectionDtoSchema),\n});\nexport type ListIntegrationConnectionsResponseDto = z.infer<\n typeof listIntegrationConnectionsResponseSchema\n>;\n\nexport const updateIntegrationConnectionBodySchema = z.object({\n lifecycle_status: updateIntegrationConnectionLifecycleStatusSchema,\n});\nexport type UpdateIntegrationConnectionBodyDto = z.infer<\n typeof updateIntegrationConnectionBodySchema\n>;\n\nexport const listRepositoriesParamsSchema = z.object({\n connectionId: z.string().uuid(),\n});\nexport type ListRepositoriesParamsDto = z.infer<typeof listRepositoriesParamsSchema>;\n\nexport const listRepositoriesQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n search: z.string().min(1).max(100).optional(),\n});\nexport type ListRepositoriesQueryDto = z.infer<typeof listRepositoriesQuerySchema>;\n\nexport const repositoryDtoSchema = z.object({\n connection_id: z.string().uuid(),\n external_repository_id: z.string(),\n owner: z.string(),\n name: z.string(),\n full_name: z.string(),\n default_branch: z.string(),\n visibility: repositoryVisibilitySchema,\n clone_url: z.string(),\n html_url: z.string(),\n});\nexport type RepositoryDto = z.infer<typeof repositoryDtoSchema>;\n\nexport const listRepositoriesResponseSchema = z.object({\n repositories: z.array(repositoryDtoSchema),\n next_cursor: z.string().nullable(),\n});\nexport type ListRepositoriesResponseDto = z.infer<typeof listRepositoriesResponseSchema>;\n"],"names":["z","connectionSlugSchema","integrationProviderKindSchema","string","min","integrationCapabilitySchema","enum","integrationConnectionLifecycleStatusSchema","updateIntegrationConnectionLifecycleStatusSchema","repositoryVisibilitySchema","integrationProviderDtoSchema","object","provider","display_name","capabilities","array","listIntegrationProvidersQuerySchema","capability","optional","listIntegrationProvidersResponseSchema","providers","integrationConnectionDtoSchema","id","uuid","workspace_id","external_account_id","slug","lifecycle_status","external_url","url","created_at","updated_at","listIntegrationConnectionsQuerySchema","listIntegrationConnectionsResponseSchema","connections","updateIntegrationConnectionBodySchema","listRepositoriesParamsSchema","connectionId","listRepositoriesQuerySchema","limit","coerce","number","int","max","default","cursor","search","repositoryDtoSchema","connection_id","external_repository_id","owner","name","full_name","default_branch","visibility","clone_url","html_url","listRepositoriesResponseSchema","repositories","next_cursor","nullable"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,oBAAoB,QAAO,WAAW;AAE9C,SAAQA,oBAAoB,GAAE;AAE9B,OAAO,MAAMC,gCAAgCF,EAAEG,MAAM,GAAGC,GAAG,CAAC,GAAG;AAG/D,OAAO,MAAMC,8BAA8BL,EAAEM,IAAI,CAAC;IAAC;IAAkB;CAAc,EAAE;AAGrF,OAAO,MAAMC,6CAA6CP,EAAEM,IAAI,CAAC;IAAC;IAAU;IAAY;CAAQ,EAAE;AAIlG,OAAO,MAAME,mDAAmDR,EAAEM,IAAI,CAAC;IAAC;IAAU;CAAW,EAAE;AAK/F,OAAO,MAAMG,6BAA6BT,EAAEM,IAAI,CAAC;IAAC;IAAU;IAAW;IAAY;CAAU,EAAE;AAG/F,OAAO,MAAMI,+BAA+BV,EAAEW,MAAM,CAAC;IACnDC,UAAUV;IACVW,cAAcb,EAAEG,MAAM;IACtBW,cAAcd,EAAEe,KAAK,CAACV;AACxB,GAAG;AAGH,OAAO,MAAMW,sCAAsChB,EAAEW,MAAM,CAAC;IAC1DM,YAAYZ,4BAA4Ba,QAAQ;AAClD,GAAG;AAGH,OAAO,MAAMC,yCAAyCnB,EAAEW,MAAM,CAAC;IAC7DS,WAAWpB,EAAEe,KAAK,CAACL;AACrB,GAAG;AAKH,OAAO,MAAMW,iCAAiCrB,EAAEW,MAAM,CAAC;IACrDW,IAAItB,EAAEG,MAAM,GAAGoB,IAAI;IACnBC,cAAcxB,EAAEG,MAAM,GAAGoB,IAAI;IAC7BX,UAAUV;IACVuB,qBAAqBzB,EAAEG,MAAM;IAC7BuB,MA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AWvD,EAAEG,MAAM;IACnBqD,UAAUxD,EAAEG,MAAM;AACpB,GAAG;AAGH,OAAO,MAAMsD,iCAAiCzD,EAAEW,MAAM,CAAC;IACrD+C,cAAc1D,EAAEe,KAAK,CAACgC;IACtBY,aAAa3D,EAAEG,MAAM,GAAGyD,QAAQ;AAClC,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/integrations.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const CONNECTION_SLUG_MAX_LENGTH = 100;\n\nexport const connectionSlugSchema = z\n .string()\n .min(1)\n .max(CONNECTION_SLUG_MAX_LENGTH)\n .regex(/^[a-z0-9]+(?:[_-][a-z0-9]+)*$/);\n\nexport const integrationProviderKindSchema = z.string().min(1);\nexport type IntegrationProviderKindDto = z.infer<typeof integrationProviderKindSchema>;\n\nexport const integrationCapabilitySchema = z.enum(['source_control', 'agent_tools']);\nexport type IntegrationCapabilityDto = z.infer<typeof integrationCapabilitySchema>;\n\nexport const integrationConnectionLifecycleStatusSchema = z.enum(['active', 'disabled', 'error']);\nexport type IntegrationConnectionLifecycleStatusDto = z.infer<\n typeof integrationConnectionLifecycleStatusSchema\n>;\nexport const updateIntegrationConnectionLifecycleStatusSchema = z.enum(['active', 'disabled']);\nexport type UpdateIntegrationConnectionLifecycleStatusDto = z.infer<\n typeof updateIntegrationConnectionLifecycleStatusSchema\n>;\n\nexport const repositoryVisibilitySchema = z.enum(['public', 'private', 'internal', 'unknown']);\nexport type RepositoryVisibilityDto = z.infer<typeof repositoryVisibilitySchema>;\n\nexport const integrationProviderDtoSchema = z.object({\n provider: integrationProviderKindSchema,\n display_name: z.string(),\n capabilities: z.array(integrationCapabilitySchema),\n});\nexport type IntegrationProviderDto = z.infer<typeof integrationProviderDtoSchema>;\n\nexport const listIntegrationProvidersQuerySchema = z.object({\n capability: integrationCapabilitySchema.optional(),\n});\nexport type ListIntegrationProvidersQueryDto = z.infer<typeof listIntegrationProvidersQuerySchema>;\n\nexport const listIntegrationProvidersResponseSchema = z.object({\n providers: z.array(integrationProviderDtoSchema),\n});\nexport type ListIntegrationProvidersResponseDto = z.infer<\n typeof listIntegrationProvidersResponseSchema\n>;\n\nexport const integrationConnectionDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n provider: integrationProviderKindSchema,\n external_account_id: z.string(),\n slug: connectionSlugSchema,\n display_name: z.string(),\n lifecycle_status: integrationConnectionLifecycleStatusSchema,\n capabilities: z.array(integrationCapabilitySchema),\n external_url: z.string().url().optional(),\n created_at: z.string(),\n updated_at: z.string(),\n});\nexport type IntegrationConnectionDto = z.infer<typeof integrationConnectionDtoSchema>;\n\nexport const listIntegrationConnectionsQuerySchema = z.object({\n workspace_id: z.string().uuid(),\n capability: integrationCapabilitySchema.optional(),\n});\nexport type ListIntegrationConnectionsQueryDto = z.infer<\n typeof listIntegrationConnectionsQuerySchema\n>;\n\nexport const listIntegrationConnectionsResponseSchema = z.object({\n connections: z.array(integrationConnectionDtoSchema),\n});\nexport type ListIntegrationConnectionsResponseDto = z.infer<\n typeof listIntegrationConnectionsResponseSchema\n>;\n\nexport const updateIntegrationConnectionBodySchema = z.object({\n lifecycle_status: updateIntegrationConnectionLifecycleStatusSchema,\n});\nexport type UpdateIntegrationConnectionBodyDto = z.infer<\n typeof updateIntegrationConnectionBodySchema\n>;\n\nexport const listRepositoriesParamsSchema = z.object({\n connectionId: z.string().uuid(),\n});\nexport type ListRepositoriesParamsDto = z.infer<typeof listRepositoriesParamsSchema>;\n\nexport const listRepositoriesQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n search: z.string().min(1).max(100).optional(),\n});\nexport type ListRepositoriesQueryDto = z.infer<typeof listRepositoriesQuerySchema>;\n\nexport const repositoryDtoSchema = z.object({\n connection_id: z.string().uuid(),\n external_repository_id: z.string(),\n owner: z.string(),\n name: z.string(),\n full_name: z.string(),\n default_branch: z.string(),\n visibility: repositoryVisibilitySchema,\n clone_url: z.string(),\n html_url: z.string(),\n});\nexport type RepositoryDto = z.infer<typeof repositoryDtoSchema>;\n\nexport const listRepositoriesResponseSchema = z.object({\n repositories: z.array(repositoryDtoSchema),\n next_cursor: z.string().nullable(),\n});\nexport type ListRepositoriesResponseDto = z.infer<typeof listRepositoriesResponseSchema>;\n"],"names":["z","CONNECTION_SLUG_MAX_LENGTH","connectionSlugSchema","string","min","max","regex","integrationProviderKindSchema","integrationCapabilitySchema","enum","integrationConnectionLifecycleStatusSchema","updateIntegrationConnectionLifecycleStatusSchema","repositoryVisibilitySchema","integrationProviderDtoSchema","object","provider","display_name","capabilities","array","listIntegrationProvidersQuerySchema","capability","optional","listIntegrationProvidersResponseSchema","providers","integrationConnectionDtoSchema","id","uuid","workspace_id","external_account_id","slug","lifecycle_status","external_url","url","created_at","updated_at","listIntegrationConnectionsQuerySchema","listIntegrationConnectionsResponseSchema","connections","updateIntegrationConnectionBodySchema","listRepositoriesParamsSchema","connectionId","listRepositoriesQuerySchema","limit","coerce","number","int","default","cursor","search","repositoryDtoSchema","connection_id","external_repository_id","owner","name","full_name","default_branch","visibility","clone_url","html_url","listRepositoriesResponseSchema","repositories","next_cursor","nullable"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,6BAA6B,IAAI;AAE9C,OAAO,MAAMC,uBAAuBF,EACjCG,MAAM,GACNC,GAAG,CAAC,GACJC,GAAG,CAACJ,4BACJK,KAAK,CAAC,iCAAiC;AAE1C,OAAO,MAAMC,gCAAgCP,EAAEG,MAAM,GAAGC,GAAG,CAAC,GAAG;AAG/D,OAAO,MAAMI,8BAA8BR,EAAES,IAAI,CAAC;IAAC;IAAkB;CAAc,EAAE;AAGrF,OAAO,MAAMC,6CAA6CV,EAAES,IAAI,CAAC;IAAC;IAAU;IAAY;CAAQ,EAAE;AAIlG,OAAO,MAAME,mDAAmDX,EAAES,IAAI,CAAC;IAAC;IAAU;CAAW,EAAE;AAK/F,OAAO,MAAMG,6BAA6BZ,EA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