@seamapi/types 0.0.6 → 0.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.
Files changed (37) hide show
  1. package/dist/connect.cjs +33 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +47 -3
  4. package/lib/seam/connect/index.d.ts +5 -1
  5. package/lib/seam/connect/index.js +6 -1
  6. package/lib/seam/connect/index.js.map +1 -1
  7. package/lib/seam/connect/model-types.d.ts +1 -0
  8. package/lib/seam/connect/model-types.js +2 -0
  9. package/lib/seam/connect/model-types.js.map +1 -0
  10. package/lib/seam/connect/models/connect-webview.d.ts +42 -0
  11. package/lib/seam/connect/models/connect-webview.js +16 -0
  12. package/lib/seam/connect/models/connect-webview.js.map +1 -0
  13. package/lib/seam/connect/models/index.d.ts +1 -1
  14. package/lib/seam/connect/models/index.js +1 -1
  15. package/lib/seam/connect/models/index.js.map +1 -1
  16. package/lib/seam/connect/openapi.d.ts +2 -0
  17. package/lib/seam/connect/openapi.js +2 -0
  18. package/lib/seam/connect/openapi.js.map +1 -0
  19. package/lib/seam/connect/route-types.d.ts +1694 -0
  20. package/lib/seam/connect/route-types.js +2 -0
  21. package/lib/seam/connect/route-types.js.map +1 -0
  22. package/lib/seam/connect/schemas.d.ts +1 -0
  23. package/lib/seam/connect/schemas.js +2 -0
  24. package/lib/seam/connect/schemas.js.map +1 -0
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/index.ts +8 -1
  27. package/src/lib/seam/connect/model-types.ts +1 -0
  28. package/src/lib/seam/connect/models/connect-webview.ts +18 -0
  29. package/src/lib/seam/connect/models/index.ts +1 -1
  30. package/src/lib/seam/connect/openapi.ts +1 -0
  31. package/src/lib/seam/connect/route-types.ts +2321 -0
  32. package/src/lib/seam/connect/schemas.ts +1 -0
  33. package/lib/seam/connect/models/workspace.d.ts +0 -9
  34. package/lib/seam/connect/models/workspace.js +0 -5
  35. package/lib/seam/connect/models/workspace.js.map +0 -1
  36. package/src/lib/seam/.prettierrc.json +0 -5
  37. package/src/lib/seam/connect/models/workspace.ts +0 -6
package/dist/connect.cjs CHANGED
@@ -2,11 +2,40 @@
2
2
 
3
3
  var zod = require('zod');
4
4
 
5
- // src/lib/seam/connect/models/workspace.ts
6
- var workspace = zod.z.object({
7
- workspace_id: zod.z.string().uuid()
5
+ var __defProp = Object.defineProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+
11
+ // src/lib/seam/connect/schemas.ts
12
+ var schemas_exports = {};
13
+ __export(schemas_exports, {
14
+ connect_webview: () => connect_webview
15
+ });
16
+ var connect_webview = zod.z.object({
17
+ connect_webview_id: zod.z.string().uuid(),
18
+ connected_account_id: zod.z.string().uuid().optional(),
19
+ url: zod.z.string().url(),
20
+ workspace_id: zod.z.string().uuid(),
21
+ device_selection_mode: zod.z.enum(["none", "single", "multiple"]),
22
+ accepted_providers: zod.z.array(zod.z.string()),
23
+ accepted_devices: zod.z.array(zod.z.string()),
24
+ any_provider_allowed: zod.z.boolean(),
25
+ any_device_allowed: zod.z.boolean(),
26
+ created_at: zod.z.string().datetime(),
27
+ login_successful: zod.z.boolean(),
28
+ status: zod.z.enum(["pending", "failed", "authorized"])
8
29
  });
9
30
 
10
- exports.workspace = workspace;
31
+ // src/lib/seam/connect/openapi.ts
32
+ var openapi_default = {};
33
+
34
+ // src/lib/seam/connect/index.ts
35
+ var routes = {};
36
+
37
+ exports.openapi = openapi_default;
38
+ exports.routes = routes;
39
+ exports.schemas = schemas_exports;
11
40
  //# sourceMappingURL=out.js.map
12
41
  //# sourceMappingURL=connect.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/lib/seam/connect/models/workspace.ts"],"names":[],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,YAAY,EAAE,OAAO;AAAA,EAChC,cAAc,EAAE,OAAO,EAAE,KAAK;AAChC,CAAC","sourcesContent":["import { z } from \"zod\"\n\nexport const workspace = z.object({\n workspace_id: z.string().uuid(),\n})\nexport type Workspace = z.infer<typeof workspace>\n"]}
1
+ {"version":3,"sources":["../src/lib/seam/connect/schemas.ts","../src/lib/seam/connect/models/connect-webview.ts","../src/lib/seam/connect/openapi.ts","../src/lib/seam/connect/index.ts"],"names":[],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;;;ACAA,SAAS,SAAS;AAEX,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACtC,oBAAoB,EAAE,OAAO,EAAE,KAAK;AAAA,EACpC,sBAAsB,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS;AAAA,EACjD,KAAK,EAAE,OAAO,EAAE,IAAI;AAAA,EACpB,cAAc,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,uBAAuB,EAAE,KAAK,CAAC,QAAQ,UAAU,UAAU,CAAC;AAAA,EAC5D,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,EACtC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,EACpC,sBAAsB,EAAE,QAAQ;AAAA,EAChC,oBAAoB,EAAE,QAAQ;AAAA,EAC9B,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,kBAAkB,EAAE,QAAQ;AAAA,EAC5B,QAAQ,EAAE,KAAK,CAAC,WAAW,UAAU,YAAY,CAAC;AACpD,CAAC;;;ACfD,IAAO,kBAAQ,CAAC;;;ACOT,IAAM,SAAS,CAAC","sourcesContent":["export { connect_webview } from './models/index.js'\n","import { z } from 'zod'\n\nexport const connect_webview = z.object({\n connect_webview_id: z.string().uuid(),\n connected_account_id: z.string().uuid().optional(),\n url: z.string().url(),\n workspace_id: z.string().uuid(),\n device_selection_mode: z.enum(['none', 'single', 'multiple']),\n accepted_providers: z.array(z.string()),\n accepted_devices: z.array(z.string()),\n any_provider_allowed: z.boolean(),\n any_device_allowed: z.boolean(),\n created_at: z.string().datetime(),\n login_successful: z.boolean(),\n status: z.enum(['pending', 'failed', 'authorized']),\n})\n\nexport type ConnectWebview = z.infer<typeof connect_webview>\n","export default {}\n","import * as schemas from './schemas.js'\n\nexport { schemas }\n\nexport * from './model-types.js'\nexport { default as openapi } from './openapi.js'\n// UPSTREAM: Reserve this named export until nextlove is able to generate this.\nexport const routes = {}\n"]}
@@ -1,12 +1,56 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const workspace: z.ZodObject<{
3
+ declare const connect_webview: z.ZodObject<{
4
+ connect_webview_id: z.ZodString;
5
+ connected_account_id: z.ZodOptional<z.ZodString>;
6
+ url: z.ZodString;
4
7
  workspace_id: z.ZodString;
8
+ device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
9
+ accepted_providers: z.ZodArray<z.ZodString, "many">;
10
+ accepted_devices: z.ZodArray<z.ZodString, "many">;
11
+ any_provider_allowed: z.ZodBoolean;
12
+ any_device_allowed: z.ZodBoolean;
13
+ created_at: z.ZodString;
14
+ login_successful: z.ZodBoolean;
15
+ status: z.ZodEnum<["pending", "failed", "authorized"]>;
5
16
  }, "strip", z.ZodTypeAny, {
17
+ connect_webview_id: string;
18
+ url: string;
6
19
  workspace_id: string;
20
+ device_selection_mode: "none" | "single" | "multiple";
21
+ status: "pending" | "failed" | "authorized";
22
+ accepted_providers: string[];
23
+ accepted_devices: string[];
24
+ any_provider_allowed: boolean;
25
+ any_device_allowed: boolean;
26
+ created_at: string;
27
+ login_successful: boolean;
28
+ connected_account_id?: string | undefined;
7
29
  }, {
30
+ connect_webview_id: string;
31
+ url: string;
8
32
  workspace_id: string;
33
+ device_selection_mode: "none" | "single" | "multiple";
34
+ status: "pending" | "failed" | "authorized";
35
+ accepted_providers: string[];
36
+ accepted_devices: string[];
37
+ any_provider_allowed: boolean;
38
+ any_device_allowed: boolean;
39
+ created_at: string;
40
+ login_successful: boolean;
41
+ connected_account_id?: string | undefined;
9
42
  }>;
10
- type Workspace = z.infer<typeof workspace>;
43
+ type ConnectWebview = z.infer<typeof connect_webview>;
11
44
 
12
- export { Workspace, workspace };
45
+ declare const schemas_connect_webview: typeof connect_webview;
46
+ declare namespace schemas {
47
+ export {
48
+ schemas_connect_webview as connect_webview,
49
+ };
50
+ }
51
+
52
+ declare const _default: {};
53
+
54
+ declare const routes: {};
55
+
56
+ export { ConnectWebview, _default as openapi, routes, schemas };
@@ -1 +1,5 @@
1
- export * from "./models/index.js";
1
+ import * as schemas from './schemas.js';
2
+ export { schemas };
3
+ export * from './model-types.js';
4
+ export { default as openapi } from './openapi.js';
5
+ export declare const routes: {};
@@ -1,2 +1,7 @@
1
- export * from "./models/index.js";
1
+ import * as schemas from './schemas.js';
2
+ export { schemas };
3
+ export * from './model-types.js';
4
+ export { default as openapi } from './openapi.js';
5
+ // UPSTREAM: Reserve this named export until nextlove is able to generate this.
6
+ export const routes = {};
2
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA;AACjD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ export type { ConnectWebview } from './models/index.js';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=model-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-types.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/model-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod';
2
+ export declare const connect_webview: z.ZodObject<{
3
+ connect_webview_id: z.ZodString;
4
+ connected_account_id: z.ZodOptional<z.ZodString>;
5
+ url: z.ZodString;
6
+ workspace_id: z.ZodString;
7
+ device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
8
+ accepted_providers: z.ZodArray<z.ZodString, "many">;
9
+ accepted_devices: z.ZodArray<z.ZodString, "many">;
10
+ any_provider_allowed: z.ZodBoolean;
11
+ any_device_allowed: z.ZodBoolean;
12
+ created_at: z.ZodString;
13
+ login_successful: z.ZodBoolean;
14
+ status: z.ZodEnum<["pending", "failed", "authorized"]>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ url: string;
17
+ status: "failed" | "pending" | "authorized";
18
+ connect_webview_id: string;
19
+ workspace_id: string;
20
+ device_selection_mode: "none" | "multiple" | "single";
21
+ accepted_providers: string[];
22
+ accepted_devices: string[];
23
+ any_provider_allowed: boolean;
24
+ any_device_allowed: boolean;
25
+ created_at: string;
26
+ login_successful: boolean;
27
+ connected_account_id?: string | undefined;
28
+ }, {
29
+ url: string;
30
+ status: "failed" | "pending" | "authorized";
31
+ connect_webview_id: string;
32
+ workspace_id: string;
33
+ device_selection_mode: "none" | "multiple" | "single";
34
+ accepted_providers: string[];
35
+ accepted_devices: string[];
36
+ any_provider_allowed: boolean;
37
+ any_device_allowed: boolean;
38
+ created_at: string;
39
+ login_successful: boolean;
40
+ connected_account_id?: string | undefined;
41
+ }>;
42
+ export type ConnectWebview = z.infer<typeof connect_webview>;
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export const connect_webview = z.object({
3
+ connect_webview_id: z.string().uuid(),
4
+ connected_account_id: z.string().uuid().optional(),
5
+ url: z.string().url(),
6
+ workspace_id: z.string().uuid(),
7
+ device_selection_mode: z.enum(['none', 'single', 'multiple']),
8
+ accepted_providers: z.array(z.string()),
9
+ accepted_devices: z.array(z.string()),
10
+ any_provider_allowed: z.boolean(),
11
+ any_device_allowed: z.boolean(),
12
+ created_at: z.string().datetime(),
13
+ login_successful: z.boolean(),
14
+ status: z.enum(['pending', 'failed', 'authorized']),
15
+ });
16
+ //# sourceMappingURL=connect-webview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC7D,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE;IACjC,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;CACpD,CAAC,CAAA"}
@@ -1 +1 @@
1
- export * from "./workspace.js";
1
+ export * from './connect-webview.js';
@@ -1,2 +1,2 @@
1
- export * from "./workspace.js";
1
+ export * from './connect-webview.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export default {};
2
+ //# sourceMappingURL=openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openapi.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/openapi.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAA"}