@ourofoundation/ouro-js 1.1.1 → 1.1.3

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 (96) hide show
  1. package/dist/index.d.ts +18 -19
  2. package/dist/index.esm.js +2 -0
  3. package/dist/index.esm.js.map +1 -0
  4. package/dist/index.js +2 -81
  5. package/dist/index.js.map +1 -1
  6. package/dist/schema/assets.d.ts +111 -100
  7. package/dist/schema/assets.esm.js +2 -0
  8. package/dist/schema/assets.esm.js.map +1 -0
  9. package/dist/schema/assets.js +2 -95
  10. package/dist/schema/assets.js.map +1 -1
  11. package/dist/schema/blueprints.d.ts +105 -95
  12. package/dist/schema/blueprints.esm.js +2 -0
  13. package/dist/schema/blueprints.esm.js.map +1 -0
  14. package/dist/schema/blueprints.js +2 -38
  15. package/dist/schema/blueprints.js.map +1 -1
  16. package/dist/schema/comments.d.ts +91 -81
  17. package/dist/schema/comments.esm.js +2 -0
  18. package/dist/schema/comments.esm.js.map +1 -0
  19. package/dist/schema/comments.js +2 -32
  20. package/dist/schema/comments.js.map +1 -1
  21. package/dist/schema/common.d.ts +32 -32
  22. package/dist/schema/common.esm.js +2 -0
  23. package/dist/schema/common.esm.js.map +1 -0
  24. package/dist/schema/common.js +2 -87
  25. package/dist/schema/common.js.map +1 -1
  26. package/dist/schema/conversations.d.ts +149 -139
  27. package/dist/schema/conversations.esm.js +2 -0
  28. package/dist/schema/conversations.esm.js.map +1 -0
  29. package/dist/schema/conversations.js +2 -54
  30. package/dist/schema/conversations.js.map +1 -1
  31. package/dist/schema/datasets.d.ts +218 -202
  32. package/dist/schema/datasets.esm.js +2 -0
  33. package/dist/schema/datasets.esm.js.map +1 -0
  34. package/dist/schema/datasets.js +2 -49
  35. package/dist/schema/datasets.js.map +1 -1
  36. package/dist/schema/files.d.ts +201 -185
  37. package/dist/schema/files.esm.js +2 -0
  38. package/dist/schema/files.esm.js.map +1 -0
  39. package/dist/schema/files.js +2 -50
  40. package/dist/schema/files.js.map +1 -1
  41. package/dist/schema/index.d.ts +14 -80
  42. package/dist/schema/notifications.d.ts +22 -22
  43. package/dist/schema/notifications.esm.js +2 -0
  44. package/dist/schema/notifications.esm.js.map +1 -0
  45. package/dist/schema/notifications.js +2 -46
  46. package/dist/schema/notifications.js.map +1 -1
  47. package/dist/schema/organizations.d.ts +11 -11
  48. package/dist/schema/organizations.esm.js +2 -0
  49. package/dist/schema/organizations.esm.js.map +1 -0
  50. package/dist/schema/organizations.js +2 -33
  51. package/dist/schema/organizations.js.map +1 -1
  52. package/dist/schema/posts.d.ts +326 -298
  53. package/dist/schema/posts.esm.js +2 -0
  54. package/dist/schema/posts.esm.js.map +1 -0
  55. package/dist/schema/posts.js +2 -81
  56. package/dist/schema/posts.js.map +1 -1
  57. package/dist/schema/replications.d.ts +125 -115
  58. package/dist/schema/replications.esm.js +2 -0
  59. package/dist/schema/replications.esm.js.map +1 -0
  60. package/dist/schema/replications.js +2 -42
  61. package/dist/schema/replications.js.map +1 -1
  62. package/dist/schema/services.d.ts +14 -14
  63. package/dist/schema/services.esm.js +2 -0
  64. package/dist/schema/services.esm.js.map +1 -0
  65. package/dist/schema/services.js +2 -39
  66. package/dist/schema/services.js.map +1 -1
  67. package/dist/schema/teams.d.ts +99 -85
  68. package/dist/schema/teams.esm.js +2 -0
  69. package/dist/schema/teams.esm.js.map +1 -0
  70. package/dist/schema/teams.js +2 -57
  71. package/dist/schema/teams.js.map +1 -1
  72. package/dist/schema/users.d.ts +13 -4
  73. package/dist/schema/users.esm.js +2 -0
  74. package/dist/schema/users.esm.js.map +1 -0
  75. package/dist/schema/users.js +2 -35
  76. package/dist/schema/users.js.map +1 -1
  77. package/dist/types/index.d.ts +14 -0
  78. package/dist/utils/air/index.d.ts +1 -1
  79. package/dist/utils/air/index.esm.js +2 -0
  80. package/dist/utils/air/index.esm.js.map +1 -0
  81. package/dist/utils/air/index.js +2 -51
  82. package/dist/utils/air/index.js.map +1 -1
  83. package/dist/utils/air/markdown-parser.esm.js +2 -0
  84. package/dist/utils/air/markdown-parser.esm.js.map +1 -0
  85. package/dist/utils/air/markdown-parser.js +2 -118
  86. package/dist/utils/air/markdown-parser.js.map +1 -1
  87. package/dist/utils/dataset.esm.js +2 -0
  88. package/dist/utils/dataset.esm.js.map +1 -0
  89. package/dist/utils/dataset.js +2 -19
  90. package/dist/utils/dataset.js.map +1 -1
  91. package/dist/utils/navigate.esm.js +2 -0
  92. package/dist/utils/navigate.esm.js.map +1 -0
  93. package/dist/utils/navigate.js +2 -56
  94. package/dist/utils/navigate.js.map +1 -1
  95. package/package.json +21 -4
  96. package/rollup.config.js +52 -0
@@ -1 +1 @@
1
- {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../src/schema/assets.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAKkB;AAClB,mDAAsD;AACtD,mCAAqC;AAErC,mCAAwC;AACxC,mCAAgC;AAEhC,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,IAAI,EAAE,qBAAa,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,YAAY,EAAE,mCAAmB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,IAAI,EAAE,kBAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,0DAA0D;IAC1D,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WA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AAC,WAAW,EAAE,CAAC;IAC9D,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AAoBH,8CAAiB;AAlBnB,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;IACnD,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,IAAI;IAChB,iCAAiC;IACjC,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,IAAI;IAClB,IAAI,EAAE,IAAI;IACV,oBAAoB;IACpB,IAAI,EAAE,IAAI;CACX,CAAC,CAAC;AASD,8CAAiB"}
1
+ {"version":3,"file":"assets.js","sources":["../../src/schema/assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n StatusSchema,\n VisibilitySchema,\n} from \"./common\";\nimport { OrganizationsSchema } from \"./organizations\";\nimport { TeamSchema } from \"./teams\";\n\nimport { ProfileSchema } from \"./users\";\nimport { uuidv7 } from \"uuidv7\";\n\nconst AssetSchema = z.object({\n id: z.string().uuid(),\n user_id: z.string().uuid(),\n user: ProfileSchema.partial().optional(),\n org_id: z.string().uuid(),\n organization: OrganizationsSchema.partial().optional(),\n team_id: z.string().uuid(),\n team: TeamSchema.partial().optional(),\n parent_id: z.string().uuid().optional().nullable(),\n // parent: z.lazy(() => AssetSchema.partial()).optional(),\n parent: z.object({}).passthrough().optional(),\n asset_type: AssetTypeSchema,\n name: z.string(),\n name_url_slug: z.string().optional().nullable(),\n slug: z.string().optional().nullable(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema,\n // Product information\n monetization: MonetizationSchema,\n price: z.number().nullable().optional(),\n unit_cost: z.number().nullable().optional(),\n cost_accounting: z.enum([\"fixed\", \"variable\"]).optional().nullable(),\n cost_unit: z.string().optional().nullable(),\n product_id: z.string().optional().nullable(),\n price_id: z.string().optional().nullable(),\n // Metadata information\n metadata: z.object({}).passthrough().optional().nullable(),\n preview: z.array(z.object({}).passthrough()).optional().nullable(),\n state: StatusSchema.optional().nullable(),\n created_at: z.string(),\n last_updated: z.string(),\n});\n\nconst CreateAssetSchema = AssetSchema.partial()\n .omit({\n user_id: true,\n // Remove extended foreign fields\n user: true,\n organization: true,\n team: true,\n // remove added slug\n slug: true,\n })\n .extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z\n .string()\n .uuid()\n .nullish()\n .default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z\n .string()\n .uuid()\n .nullish()\n .default(\"00000000-0000-0000-0000-000000000000\"),\n name: z\n .string()\n .min(1, {\n message: \"Name cannot be empty\",\n })\n .max(255, {\n message: \"Name must be less than 255 characters\",\n }), // name is required for all assets but posts and conversations\n name_url_slug: z.string().optional().nullable(),\n state: StatusSchema.optional().default(\"success\"),\n visibility: VisibilitySchema.optional().default(\"public\"),\n created_at: z.string().default(() => new Date().toISOString()),\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nconst UpdateAssetSchema = AssetSchema.partial().omit({\n id: true,\n user_id: true,\n created_at: true,\n // Remove extended foreign fields\n user: true,\n organization: true,\n team: true,\n // remove added slug\n slug: true,\n});\n\nexport { AssetSchema, CreateAssetSchema, UpdateAssetSchema };\nexport type Asset = z.infer<typeof AssetSchema>;\nexport type CreateAsset = z.infer<typeof CreateAssetSchema>;\nexport type UpdateAsset = z.infer<typeof UpdateAssetSchema>;\n"],"names":["AssetSchema","z","object","id","string","uuid","user_id","user","ProfileSchema","partial","optional","org_id","organization","OrganizationsSchema","team_id","team","TeamSchema","parent_id","nullable","parent","passthrough","asset_type","AssetTypeSchema","name","name_url_slug","slug","description","visibility","VisibilitySchema","monetization","MonetizationSchema","price","number","unit_cost","cost_accounting","enum","cost_unit","product_id","price_id","metadata","preview","array","state","StatusSchema","created_at","last_updated","CreateAssetSchema","omit","extend","default","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,EAAYS,UACnCsC,KAAK,CACJzC,SAAS,EAETC,MAAM,EACNK,cAAc,EACdG,MAAM,EAENU,MAAM,IAEPuB,OAAO,CACN7C,GAAIF,EAAAA,EACDG,SACAC,OACA4C,SAAQ,IAAMC,EAAAA,WACjBpC,QAASb,EAAAA,EACNG,SACAC,OACA8C,UACAF,QAAQ,wCACXtC,OAAQV,EAAAA,EACLG,SACAC,OACA8C,UACAF,QAAQ,wCACX1B,KAAMtB,EAAAA,EACHG,SACAgD,IAAI,EAAG,CACNC,QAAS,yBAEVC,IAAI,IAAK,CACRD,QAAS,0CAEb7B,cAAevB,EAAAA,EAAEG,SAASM,WAAWQ,WACrCwB,MAAOC,EAAAA,aAAajC,WAAWuC,QAAQ,WACvCtB,WAAYC,EAAAA,iBAAiBlB,WAAWuC,QAAQ,UAChDL,WAAY3C,EAAAA,EAAEG,SAAS6C,SAAQ,KAAM,IAAIM,MAAOC,gBAChDX,aAAc5C,EAAAA,EAAEG,SAAS6C,SAAQ,KAAM,IAAIM,MAAOC,kBAGhDC,EAAoBzD,EAAYS,UAAUsC,KAAK,CACnD5C,IAAI,EACJG,SAAS,EACTsC,YAAY,EAEZrC,MAAM,EACNK,cAAc,EACdG,MAAM,EAENU,MAAM"}
@@ -15,6 +15,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
15
15
  }, {
16
16
  value: string;
17
17
  }>, "many">>>;
18
+ post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
18
19
  last_active: z.ZodOptional<z.ZodString>;
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  id?: string | undefined;
@@ -25,6 +26,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
25
26
  }[] | undefined;
26
27
  username?: string | null | undefined;
27
28
  bio?: string | null | undefined;
29
+ post_id?: string | null | undefined;
28
30
  last_active?: string | undefined;
29
31
  }, {
30
32
  id?: string | undefined;
@@ -35,6 +37,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
35
37
  }[] | undefined;
36
38
  username?: string | null | undefined;
37
39
  bio?: string | null | undefined;
40
+ post_id?: string | null | undefined;
38
41
  last_active?: string | undefined;
39
42
  }>>;
40
43
  org_id: z.ZodString;
@@ -57,27 +60,27 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
57
60
  }, "strip", z.ZodTypeAny, {
58
61
  id?: string | undefined;
59
62
  name?: string | undefined;
60
- size?: string | undefined;
61
- email?: string | null | undefined;
62
63
  avatar_path?: string | null | undefined;
63
64
  mission?: string | null | undefined;
65
+ size?: string | undefined;
66
+ email?: string | null | undefined;
64
67
  domain?: string | null | undefined;
65
68
  urls?: {
66
69
  value: string;
67
70
  }[] | null | undefined;
68
- base_role?: "none" | "admin" | "read" | "write" | undefined;
71
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
69
72
  }, {
70
73
  id?: string | undefined;
71
74
  name?: string | undefined;
72
- size?: string | undefined;
73
- email?: string | null | undefined;
74
75
  avatar_path?: string | null | undefined;
75
76
  mission?: string | null | undefined;
77
+ size?: string | undefined;
78
+ email?: string | null | undefined;
76
79
  domain?: string | null | undefined;
77
80
  urls?: {
78
81
  value: string;
79
82
  }[] | null | undefined;
80
- base_role?: "none" | "admin" | "read" | "write" | undefined;
83
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
81
84
  }>>;
82
85
  team_id: z.ZodString;
83
86
  team: z.ZodOptional<z.ZodObject<{
@@ -90,20 +93,20 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
90
93
  created_at: z.ZodOptional<z.ZodString>;
91
94
  }, "strip", z.ZodTypeAny, {
92
95
  id?: string | undefined;
93
- name?: string | undefined;
94
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
95
- description?: string | null | undefined;
96
96
  org_id?: string | undefined;
97
97
  created_at?: string | undefined;
98
- default_role?: "none" | "admin" | "read" | "write" | undefined;
99
- }, {
100
- id?: string | undefined;
101
98
  name?: string | undefined;
102
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
99
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
103
100
  description?: string | null | undefined;
101
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
102
+ }, {
103
+ id?: string | undefined;
104
104
  org_id?: string | undefined;
105
105
  created_at?: string | undefined;
106
- default_role?: "none" | "admin" | "read" | "write" | undefined;
106
+ name?: string | undefined;
107
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
108
+ description?: string | null | undefined;
109
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
107
110
  }>>;
108
111
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
112
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -126,22 +129,18 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
126
129
  created_at: z.ZodString;
127
130
  last_updated: z.ZodString;
128
131
  }, {
129
- asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
132
+ asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
130
133
  }>, "strip", z.ZodTypeAny, {
131
134
  id: string;
132
- name: string;
133
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
134
135
  user_id: string;
135
136
  org_id: string;
136
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
137
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
137
138
  created_at: string;
138
139
  last_updated: string;
140
+ name: string;
139
141
  team_id: string;
142
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
140
143
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
141
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
142
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
143
- description?: string | null | undefined;
144
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
145
144
  user?: {
146
145
  id?: string | undefined;
147
146
  user_id?: string | undefined;
@@ -151,31 +150,35 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
151
150
  }[] | undefined;
152
151
  username?: string | null | undefined;
153
152
  bio?: string | null | undefined;
153
+ post_id?: string | null | undefined;
154
154
  last_active?: string | undefined;
155
155
  } | undefined;
156
156
  organization?: {
157
157
  id?: string | undefined;
158
158
  name?: string | undefined;
159
- size?: string | undefined;
160
- email?: string | null | undefined;
161
159
  avatar_path?: string | null | undefined;
162
160
  mission?: string | null | undefined;
161
+ size?: string | undefined;
162
+ email?: string | null | undefined;
163
163
  domain?: string | null | undefined;
164
164
  urls?: {
165
165
  value: string;
166
166
  }[] | null | undefined;
167
- base_role?: "none" | "admin" | "read" | "write" | undefined;
167
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
168
168
  } | undefined;
169
169
  team?: {
170
170
  id?: string | undefined;
171
- name?: string | undefined;
172
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
173
- description?: string | null | undefined;
174
171
  org_id?: string | undefined;
175
172
  created_at?: string | undefined;
176
- default_role?: "none" | "admin" | "read" | "write" | undefined;
173
+ name?: string | undefined;
174
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
175
+ description?: string | null | undefined;
176
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
177
177
  } | undefined;
178
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
179
+ description?: string | null | undefined;
178
180
  parent_id?: string | null | undefined;
181
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
179
182
  name_url_slug?: string | null | undefined;
180
183
  slug?: string | null | undefined;
181
184
  price?: number | null | undefined;
@@ -185,21 +188,18 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
185
188
  product_id?: string | null | undefined;
186
189
  price_id?: string | null | undefined;
187
190
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
191
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
188
192
  }, {
189
193
  id: string;
190
- name: string;
191
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
192
194
  user_id: string;
193
195
  org_id: string;
194
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
196
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
195
197
  created_at: string;
196
198
  last_updated: string;
199
+ name: string;
197
200
  team_id: string;
201
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
198
202
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
199
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
200
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
201
- description?: string | null | undefined;
202
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
203
203
  user?: {
204
204
  id?: string | undefined;
205
205
  user_id?: string | undefined;
@@ -209,31 +209,35 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
209
209
  }[] | undefined;
210
210
  username?: string | null | undefined;
211
211
  bio?: string | null | undefined;
212
+ post_id?: string | null | undefined;
212
213
  last_active?: string | undefined;
213
214
  } | undefined;
214
215
  organization?: {
215
216
  id?: string | undefined;
216
217
  name?: string | undefined;
217
- size?: string | undefined;
218
- email?: string | null | undefined;
219
218
  avatar_path?: string | null | undefined;
220
219
  mission?: string | null | undefined;
220
+ size?: string | undefined;
221
+ email?: string | null | undefined;
221
222
  domain?: string | null | undefined;
222
223
  urls?: {
223
224
  value: string;
224
225
  }[] | null | undefined;
225
- base_role?: "none" | "admin" | "read" | "write" | undefined;
226
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
226
227
  } | undefined;
227
228
  team?: {
228
229
  id?: string | undefined;
229
- name?: string | undefined;
230
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
231
- description?: string | null | undefined;
232
230
  org_id?: string | undefined;
233
231
  created_at?: string | undefined;
234
- default_role?: "none" | "admin" | "read" | "write" | undefined;
232
+ name?: string | undefined;
233
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
234
+ description?: string | null | undefined;
235
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
235
236
  } | undefined;
237
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
238
+ description?: string | null | undefined;
236
239
  parent_id?: string | null | undefined;
240
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
237
241
  name_url_slug?: string | null | undefined;
238
242
  slug?: string | null | undefined;
239
243
  price?: number | null | undefined;
@@ -243,6 +247,7 @@ declare const BlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
243
247
  product_id?: string | null | undefined;
244
248
  price_id?: string | null | undefined;
245
249
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
250
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
246
251
  }>;
247
252
  declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
248
253
  id: z.ZodOptional<z.ZodString>;
@@ -260,6 +265,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
260
265
  }, {
261
266
  value: string;
262
267
  }>, "many">>>;
268
+ post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
263
269
  last_active: z.ZodOptional<z.ZodString>;
264
270
  }, "strip", z.ZodTypeAny, {
265
271
  id?: string | undefined;
@@ -270,6 +276,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
270
276
  }[] | undefined;
271
277
  username?: string | null | undefined;
272
278
  bio?: string | null | undefined;
279
+ post_id?: string | null | undefined;
273
280
  last_active?: string | undefined;
274
281
  }, {
275
282
  id?: string | undefined;
@@ -280,6 +287,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
280
287
  }[] | undefined;
281
288
  username?: string | null | undefined;
282
289
  bio?: string | null | undefined;
290
+ post_id?: string | null | undefined;
283
291
  last_active?: string | undefined;
284
292
  }>>>;
285
293
  org_id: z.ZodOptional<z.ZodString>;
@@ -302,27 +310,27 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
302
310
  }, "strip", z.ZodTypeAny, {
303
311
  id?: string | undefined;
304
312
  name?: string | undefined;
305
- size?: string | undefined;
306
- email?: string | null | undefined;
307
313
  avatar_path?: string | null | undefined;
308
314
  mission?: string | null | undefined;
315
+ size?: string | undefined;
316
+ email?: string | null | undefined;
309
317
  domain?: string | null | undefined;
310
318
  urls?: {
311
319
  value: string;
312
320
  }[] | null | undefined;
313
- base_role?: "none" | "admin" | "read" | "write" | undefined;
321
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
314
322
  }, {
315
323
  id?: string | undefined;
316
324
  name?: string | undefined;
317
- size?: string | undefined;
318
- email?: string | null | undefined;
319
325
  avatar_path?: string | null | undefined;
320
326
  mission?: string | null | undefined;
327
+ size?: string | undefined;
328
+ email?: string | null | undefined;
321
329
  domain?: string | null | undefined;
322
330
  urls?: {
323
331
  value: string;
324
332
  }[] | null | undefined;
325
- base_role?: "none" | "admin" | "read" | "write" | undefined;
333
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
326
334
  }>>>;
327
335
  team_id: z.ZodOptional<z.ZodString>;
328
336
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -335,20 +343,20 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
335
343
  created_at: z.ZodOptional<z.ZodString>;
336
344
  }, "strip", z.ZodTypeAny, {
337
345
  id?: string | undefined;
338
- name?: string | undefined;
339
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
340
- description?: string | null | undefined;
341
346
  org_id?: string | undefined;
342
347
  created_at?: string | undefined;
343
- default_role?: "none" | "admin" | "read" | "write" | undefined;
344
- }, {
345
- id?: string | undefined;
346
348
  name?: string | undefined;
347
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
349
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
348
350
  description?: string | null | undefined;
351
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
352
+ }, {
353
+ id?: string | undefined;
349
354
  org_id?: string | undefined;
350
355
  created_at?: string | undefined;
351
- default_role?: "none" | "admin" | "read" | "write" | undefined;
356
+ name?: string | undefined;
357
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
358
+ description?: string | null | undefined;
359
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
352
360
  }>>>;
353
361
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
354
362
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -387,20 +395,15 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
387
395
  }, z.ZodTypeAny, "passthrough">>;
388
396
  }>, "strip", z.ZodTypeAny, {
389
397
  id: string;
398
+ org_id: string;
390
399
  metadata: {
391
400
  edges: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
392
401
  nodes: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
393
402
  } & {
394
403
  [k: string]: unknown;
395
404
  };
396
- org_id: string;
397
405
  team_id: string;
398
406
  name_url_slug: string;
399
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
400
- name?: string | undefined;
401
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
402
- description?: string | null | undefined;
403
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
404
407
  user?: {
405
408
  id?: string | undefined;
406
409
  user_id?: string | undefined;
@@ -410,35 +413,40 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
410
413
  }[] | undefined;
411
414
  username?: string | null | undefined;
412
415
  bio?: string | null | undefined;
416
+ post_id?: string | null | undefined;
413
417
  last_active?: string | undefined;
414
418
  } | undefined;
415
419
  organization?: {
416
420
  id?: string | undefined;
417
421
  name?: string | undefined;
418
- size?: string | undefined;
419
- email?: string | null | undefined;
420
422
  avatar_path?: string | null | undefined;
421
423
  mission?: string | null | undefined;
424
+ size?: string | undefined;
425
+ email?: string | null | undefined;
422
426
  domain?: string | null | undefined;
423
427
  urls?: {
424
428
  value: string;
425
429
  }[] | null | undefined;
426
- base_role?: "none" | "admin" | "read" | "write" | undefined;
430
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
427
431
  } | undefined;
428
432
  team?: {
429
433
  id?: string | undefined;
430
- name?: string | undefined;
431
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
432
- description?: string | null | undefined;
433
434
  org_id?: string | undefined;
434
435
  created_at?: string | undefined;
435
- default_role?: "none" | "admin" | "read" | "write" | undefined;
436
+ name?: string | undefined;
437
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
438
+ description?: string | null | undefined;
439
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
436
440
  } | undefined;
437
441
  user_id?: string | undefined;
438
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
442
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
439
443
  created_at?: string | undefined;
440
444
  last_updated?: string | undefined;
445
+ name?: string | undefined;
446
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
447
+ description?: string | null | undefined;
441
448
  parent_id?: string | null | undefined;
449
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
442
450
  slug?: string | null | undefined;
443
451
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
444
452
  price?: number | null | undefined;
@@ -448,6 +456,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
448
456
  product_id?: string | null | undefined;
449
457
  price_id?: string | null | undefined;
450
458
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
459
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
451
460
  }, {
452
461
  metadata: {
453
462
  edges: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
@@ -456,12 +465,6 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
456
465
  [k: string]: unknown;
457
466
  };
458
467
  name_url_slug: string;
459
- id?: string | undefined;
460
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
461
- name?: string | undefined;
462
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
463
- description?: string | null | undefined;
464
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
465
468
  user?: {
466
469
  id?: string | undefined;
467
470
  user_id?: string | undefined;
@@ -471,37 +474,43 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
471
474
  }[] | undefined;
472
475
  username?: string | null | undefined;
473
476
  bio?: string | null | undefined;
477
+ post_id?: string | null | undefined;
474
478
  last_active?: string | undefined;
475
479
  } | undefined;
476
480
  organization?: {
477
481
  id?: string | undefined;
478
482
  name?: string | undefined;
479
- size?: string | undefined;
480
- email?: string | null | undefined;
481
483
  avatar_path?: string | null | undefined;
482
484
  mission?: string | null | undefined;
485
+ size?: string | undefined;
486
+ email?: string | null | undefined;
483
487
  domain?: string | null | undefined;
484
488
  urls?: {
485
489
  value: string;
486
490
  }[] | null | undefined;
487
- base_role?: "none" | "admin" | "read" | "write" | undefined;
491
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
488
492
  } | undefined;
489
493
  team?: {
490
494
  id?: string | undefined;
491
- name?: string | undefined;
492
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
493
- description?: string | null | undefined;
494
495
  org_id?: string | undefined;
495
496
  created_at?: string | undefined;
496
- default_role?: "none" | "admin" | "read" | "write" | undefined;
497
+ name?: string | undefined;
498
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
499
+ description?: string | null | undefined;
500
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
497
501
  } | undefined;
502
+ id?: string | undefined;
498
503
  user_id?: string | undefined;
499
504
  org_id?: string | undefined;
500
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
505
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
501
506
  created_at?: string | undefined;
502
507
  last_updated?: string | undefined;
508
+ name?: string | undefined;
503
509
  team_id?: string | undefined;
510
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
511
+ description?: string | null | undefined;
504
512
  parent_id?: string | null | undefined;
513
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
505
514
  slug?: string | null | undefined;
506
515
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
507
516
  price?: number | null | undefined;
@@ -511,6 +520,7 @@ declare const CreateBlueprintSchema: z.ZodObject<z.objectUtil.extendShape<{
511
520
  product_id?: string | null | undefined;
512
521
  price_id?: string | null | undefined;
513
522
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
523
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
514
524
  }>;
515
525
  declare const UpdateBlueprintSchema: z.ZodObject<{
516
526
  team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -522,22 +532,22 @@ declare const UpdateBlueprintSchema: z.ZodObject<{
522
532
  last_updated: z.ZodDefault<z.ZodString>;
523
533
  }, "strip", z.ZodTypeAny, {
524
534
  last_updated: string;
525
- name?: string | null | undefined;
526
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
527
535
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
528
- description?: string | null | undefined;
536
+ name?: string | null | undefined;
529
537
  team_id?: string | null | undefined;
538
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
539
+ description?: string | null | undefined;
530
540
  name_url_slug?: string | null | undefined;
531
541
  }, {
532
- name?: string | null | undefined;
533
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
534
542
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
535
- description?: string | null | undefined;
536
543
  last_updated?: string | undefined;
544
+ name?: string | null | undefined;
537
545
  team_id?: string | null | undefined;
546
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
547
+ description?: string | null | undefined;
538
548
  name_url_slug?: string | null | undefined;
539
549
  }>;
540
- type Blueprint = z.infer<typeof BlueprintSchema>;
541
- type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;
542
- type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;
543
- export { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema, type Blueprint, type CreateBlueprint, type UpdateBlueprint, };
550
+ export { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };
551
+ export type Blueprint = z.infer<typeof BlueprintSchema>;
552
+ export type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;
553
+ export type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;
@@ -0,0 +1,2 @@
1
+ import{uuidv7 as t}from"uuidv7";import{z as a}from"zod";import{AssetSchema as e}from"./assets.esm.js";import{AssetTypeSchema as i,VisibilitySchema as o}from"./common.esm.js";const l=e.extend({asset_type:i.refine((t=>"blueprint"===t))}),n=e.partial().extend({id:a.string().uuid().default((()=>t())),team_id:a.string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:a.string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:a.string(),metadata:a.object({edges:a.array(a.object({}).passthrough()),nodes:a.array(a.object({}).passthrough())}).passthrough()}),r=a.object({team_id:a.string().uuid().nullable().optional(),name_url_slug:a.string().nullable().optional(),name:a.string().nullable().optional(),description:a.string().nullable().optional(),visibility:o.nullable().optional(),metadata:a.object({}).passthrough().optional().nullable(),last_updated:a.string().default((()=>(new Date).toISOString()))});export{l as BlueprintSchema,n as CreateBlueprintSchema,r as UpdateBlueprintSchema};
2
+ //# sourceMappingURL=blueprints.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprints.esm.js","sources":["../../src/schema/blueprints.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: z.string(),\n metadata: z\n .object({\n edges: z.array(z.object({}).passthrough()),\n nodes: z.array(z.object({}).passthrough()),\n })\n .passthrough(),\n});\n\nconst UpdateBlueprintSchema = z.object({\n team_id: z.string().uuid().nullable().optional(),\n name_url_slug: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema.nullable().optional(),\n metadata: z.object({}).passthrough().optional().nullable(),\n last_updated: z.string().default(() => new Date().toISOString()),\n});\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"],"names":["BlueprintSchema","AssetSchema","extend","asset_type","AssetTypeSchema","refine","val","CreateBlueprintSchema","partial","id","z","string","uuid","default","uuidv7","team_id","org_id","name_url_slug","metadata","object","edges","array","passthrough","nodes","UpdateBlueprintSchema","nullable","optional","name","description","visibility","VisibilitySchema","last_updated","Date","toISOString"],"mappings":"8KAUA,MAAMA,EAAkBC,EAAYC,OAAO,CACzCC,WAAYC,EAAgBC,QAAQC,GAAgB,cAARA,MAGxCC,EAAwBN,EAAYO,UAAUN,OAAO,CACzDO,GAAIC,EACDC,SACAC,OACAC,SAAQ,IAAMC,MACjBC,QAASL,EAAEC,SAASC,OAAOC,QAAQ,wCACnCG,OAAQN,EAAEC,SAASC,OAAOC,QAAQ,wCAClCI,cAAeP,EAAEC,SACjBO,SAAUR,EACPS,OAAO,CACNC,MAAOV,EAAEW,MAAMX,EAAES,OAAO,CAAE,GAAEG,eAC5BC,MAAOb,EAAEW,MAAMX,EAAES,OAAO,CAAE,GAAEG,iBAE7BA,gBAGCE,EAAwBd,EAAES,OAAO,CACrCJ,QAASL,EAAEC,SAASC,OAAOa,WAAWC,WACtCT,cAAeP,EAAEC,SAASc,WAAWC,WACrCC,KAAMjB,EAAEC,SAASc,WAAWC,WAC5BE,YAAalB,EAAEC,SAASc,WAAWC,WACnCG,WAAYC,EAAiBL,WAAWC,WACxCR,SAAUR,EAAES,OAAO,CAAE,GAAEG,cAAcI,WAAWD,WAChDM,aAAcrB,EAAEC,SAASE,SAAQ,KAAM,IAAImB,MAAOC"}
@@ -1,38 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateBlueprintSchema = exports.CreateBlueprintSchema = exports.BlueprintSchema = void 0;
4
- const uuidv7_1 = require("uuidv7");
5
- const zod_1 = require("zod");
6
- const assets_1 = require("./assets");
7
- const common_1 = require("./common");
8
- const BlueprintSchema = assets_1.AssetSchema.extend({
9
- asset_type: common_1.AssetTypeSchema.refine((val) => val === "blueprint"),
10
- });
11
- exports.BlueprintSchema = BlueprintSchema;
12
- const CreateBlueprintSchema = assets_1.AssetSchema.partial().extend({
13
- id: zod_1.z
14
- .string()
15
- .uuid()
16
- .default(() => (0, uuidv7_1.uuidv7)()),
17
- team_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
18
- org_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
19
- name_url_slug: zod_1.z.string(),
20
- metadata: zod_1.z
21
- .object({
22
- edges: zod_1.z.array(zod_1.z.object({}).passthrough()),
23
- nodes: zod_1.z.array(zod_1.z.object({}).passthrough()),
24
- })
25
- .passthrough(),
26
- });
27
- exports.CreateBlueprintSchema = CreateBlueprintSchema;
28
- const UpdateBlueprintSchema = zod_1.z.object({
29
- team_id: zod_1.z.string().uuid().nullable().optional(),
30
- name_url_slug: zod_1.z.string().nullable().optional(),
31
- name: zod_1.z.string().nullable().optional(),
32
- description: zod_1.z.string().nullable().optional(),
33
- visibility: common_1.VisibilitySchema.nullable().optional(),
34
- metadata: zod_1.z.object({}).passthrough().optional().nullable(),
35
- last_updated: zod_1.z.string().default(() => new Date().toISOString()),
36
- });
37
- exports.UpdateBlueprintSchema = UpdateBlueprintSchema;
38
- //# sourceMappingURL=blueprints.js.map
1
+ "use strict";var e=require("uuidv7"),t=require("zod"),a=require("./assets.js"),i=require("./common.js");const s=a.AssetSchema.extend({asset_type:i.AssetTypeSchema.refine((e=>"blueprint"===e))}),r=a.AssetSchema.partial().extend({id:t.z.string().uuid().default((()=>e.uuidv7())),team_id:t.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:t.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:t.z.string(),metadata:t.z.object({edges:t.z.array(t.z.object({}).passthrough()),nodes:t.z.array(t.z.object({}).passthrough())}).passthrough()}),l=t.z.object({team_id:t.z.string().uuid().nullable().optional(),name_url_slug:t.z.string().nullable().optional(),name:t.z.string().nullable().optional(),description:t.z.string().nullable().optional(),visibility:i.VisibilitySchema.nullable().optional(),metadata:t.z.object({}).passthrough().optional().nullable(),last_updated:t.z.string().default((()=>(new Date).toISOString()))});exports.BlueprintSchema=s,exports.CreateBlueprintSchema=r,exports.UpdateBlueprintSchema=l;
2
+ //# sourceMappingURL=blueprints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"blueprints.js","sourceRoot":"","sources":["../../src/schema/blueprints.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAChC,6BAAwB;AAExB,qCAAuC;AACvC,qCAIkB;AAElB,MAAM,eAAe,GAAG,oBAAW,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,wBAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,WAAW,CAAC;CACjE,CAAC,CAAC;AAiCD,0CAAe;AA/BjB,MAAM,qBAAqB,GAAG,oBAAW,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;IACzD,EAAE,EAAE,OAAC;SACF,MAAM,EAAE;SACR,IAAI,EAAE;SACN,OA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EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;CACjE,CAAC,CAAC;AASD,sDAAqB"}
1
+ {"version":3,"file":"blueprints.js","sources":["../../src/schema/blueprints.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: z.string(),\n metadata: z\n .object({\n edges: z.array(z.object({}).passthrough()),\n nodes: z.array(z.object({}).passthrough()),\n })\n .passthrough(),\n});\n\nconst UpdateBlueprintSchema = z.object({\n team_id: z.string().uuid().nullable().optional(),\n name_url_slug: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema.nullable().optional(),\n metadata: z.object({}).passthrough().optional().nullable(),\n last_updated: z.string().default(() => new Date().toISOString()),\n});\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"],"names":["BlueprintSchema","AssetSchema","extend","asset_type","AssetTypeSchema","refine","val","CreateBlueprintSchema","partial","id","z","string","uuid","default","uuidv7","team_id","org_id","name_url_slug","metadata","object","edges","array","passthrough","nodes","UpdateBlueprintSchema","nullable","optional","name","description","visibility","VisibilitySchema","last_updated","Date","toISOString"],"mappings":"wGAUA,MAAMA,EAAkBC,EAAWA,YAACC,OAAO,CACzCC,WAAYC,EAAeA,gBAACC,QAAQC,GAAgB,cAARA,MAGxCC,EAAwBN,EAAWA,YAACO,UAAUN,OAAO,CACzDO,GAAIC,EAAAA,EACDC,SACAC,OACAC,SAAQ,IAAMC,EAAAA,WACjBC,QAASL,EAACA,EAACC,SAASC,OAAOC,QAAQ,wCACnCG,OAAQN,EAACA,EAACC,SAASC,OAAOC,QAAQ,wCAClCI,cAAeP,EAACA,EAACC,SACjBO,SAAUR,EAAAA,EACPS,OAAO,CACNC,MAAOV,EAACA,EAACW,MAAMX,EAAAA,EAAES,OAAO,CAAE,GAAEG,eAC5BC,MAAOb,EAACA,EAACW,MAAMX,EAAAA,EAAES,OAAO,CAAE,GAAEG,iBAE7BA,gBAGCE,EAAwBd,EAACA,EAACS,OAAO,CACrCJ,QAASL,EAACA,EAACC,SAASC,OAAOa,WAAWC,WACtCT,cAAeP,EAAAA,EAAEC,SAASc,WAAWC,WACrCC,KAAMjB,EAAAA,EAAEC,SAASc,WAAWC,WAC5BE,YAAalB,EAAAA,EAAEC,SAASc,WAAWC,WACnCG,WAAYC,EAAgBA,iBAACL,WAAWC,WACxCR,SAAUR,EAAAA,EAAES,OAAO,CAAE,GAAEG,cAAcI,WAAWD,WAChDM,aAAcrB,EAAAA,EAAEC,SAASE,SAAQ,KAAM,IAAImB,MAAOC"}