@echovisionlab/geul-proto 0.1.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 (120) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +6 -0
  3. package/eslint.config.mjs +15 -0
  4. package/gen/api/common/v1/common_pb.ts +391 -0
  5. package/gen/api/common/v1/media_pb.ts +578 -0
  6. package/gen/api/content/v1/block_catalog.ts +5978 -0
  7. package/gen/api/content/v1/block_content_pb.ts +11420 -0
  8. package/gen/api/intra/v1/artist_pb.ts +597 -0
  9. package/gen/api/intra/v1/campaign_pb.ts +383 -0
  10. package/gen/api/intra/v1/collaboration_pb.ts +661 -0
  11. package/gen/api/intra/v1/email_courier_pb.ts +98 -0
  12. package/gen/api/intra/v1/email_layout_pb.ts +295 -0
  13. package/gen/api/intra/v1/email_template_pb.ts +384 -0
  14. package/gen/api/intra/v1/file_ingest_pb.ts +144 -0
  15. package/gen/api/intra/v1/form_locale_catalog.ts +128 -0
  16. package/gen/api/intra/v1/form_locale_catalog_parity.json +24 -0
  17. package/gen/api/intra/v1/form_pb.ts +276 -0
  18. package/gen/api/intra/v1/gateway_authorization_pb.ts +96 -0
  19. package/gen/api/intra/v1/label_pb.ts +558 -0
  20. package/gen/api/intra/v1/map_pb.ts +382 -0
  21. package/gen/api/intra/v1/menu_pb.ts +282 -0
  22. package/gen/api/intra/v1/og_pb.ts +335 -0
  23. package/gen/api/intra/v1/page_pb.ts +572 -0
  24. package/gen/api/intra/v1/post_pb.ts +657 -0
  25. package/gen/api/intra/v1/post_series_pb.ts +217 -0
  26. package/gen/api/intra/v1/privacy_pb.ts +384 -0
  27. package/gen/api/intra/v1/program_event_pb.ts +390 -0
  28. package/gen/api/intra/v1/release_pb.ts +462 -0
  29. package/gen/api/intra/v1/terms_pb.ts +384 -0
  30. package/gen/api/intra/v1/work_pb.ts +477 -0
  31. package/gen/api/manage/v1/account_pb.ts +1311 -0
  32. package/gen/api/manage/v1/admin_pb.ts +681 -0
  33. package/gen/api/manage/v1/ai_pb.ts +2621 -0
  34. package/gen/api/manage/v1/artist_pb.ts +1271 -0
  35. package/gen/api/manage/v1/audience_pb.ts +597 -0
  36. package/gen/api/manage/v1/campaign_pb.ts +1289 -0
  37. package/gen/api/manage/v1/category_pb.ts +351 -0
  38. package/gen/api/manage/v1/client_pb.ts +512 -0
  39. package/gen/api/manage/v1/collaboration_pb.ts +112 -0
  40. package/gen/api/manage/v1/comment_pb.ts +530 -0
  41. package/gen/api/manage/v1/common_pb.ts +192 -0
  42. package/gen/api/manage/v1/email_layout_pb.ts +487 -0
  43. package/gen/api/manage/v1/email_suppression_pb.ts +192 -0
  44. package/gen/api/manage/v1/email_template_pb.ts +683 -0
  45. package/gen/api/manage/v1/events_pb.ts +3251 -0
  46. package/gen/api/manage/v1/file_pb.ts +2810 -0
  47. package/gen/api/manage/v1/form_pb.ts +1046 -0
  48. package/gen/api/manage/v1/format_pb.ts +321 -0
  49. package/gen/api/manage/v1/genre_pb.ts +340 -0
  50. package/gen/api/manage/v1/label_pb.ts +1105 -0
  51. package/gen/api/manage/v1/mail_adapter_pb.ts +656 -0
  52. package/gen/api/manage/v1/map_place_pb.ts +572 -0
  53. package/gen/api/manage/v1/map_theme_pb.ts +691 -0
  54. package/gen/api/manage/v1/member_pb.ts +1281 -0
  55. package/gen/api/manage/v1/menu_pb.ts +535 -0
  56. package/gen/api/manage/v1/page_pb.ts +894 -0
  57. package/gen/api/manage/v1/post_pb.ts +1475 -0
  58. package/gen/api/manage/v1/privacy_pb.ts +518 -0
  59. package/gen/api/manage/v1/program_event_pb.ts +2234 -0
  60. package/gen/api/manage/v1/release_pb.ts +1168 -0
  61. package/gen/api/manage/v1/series_pb.ts +1033 -0
  62. package/gen/api/manage/v1/share_link_pb.ts +351 -0
  63. package/gen/api/manage/v1/site_setting_pb.ts +623 -0
  64. package/gen/api/manage/v1/style_pb.ts +340 -0
  65. package/gen/api/manage/v1/tag_pb.ts +323 -0
  66. package/gen/api/manage/v1/terms_pb.ts +517 -0
  67. package/gen/api/manage/v1/track_pb.ts +543 -0
  68. package/gen/api/manage/v1/translation_pb.ts +1838 -0
  69. package/gen/api/manage/v1/work_pb.ts +1662 -0
  70. package/gen/api/open/v1/account_pb.ts +243 -0
  71. package/gen/api/open/v1/artist_pb.ts +732 -0
  72. package/gen/api/open/v1/category_pb.ts +143 -0
  73. package/gen/api/open/v1/client_pb.ts +190 -0
  74. package/gen/api/open/v1/file_pb.ts +244 -0
  75. package/gen/api/open/v1/form_pb.ts +698 -0
  76. package/gen/api/open/v1/label_pb.ts +512 -0
  77. package/gen/api/open/v1/manifest_pb.ts +326 -0
  78. package/gen/api/open/v1/map_place_pb.ts +228 -0
  79. package/gen/api/open/v1/map_theme_pb.ts +400 -0
  80. package/gen/api/open/v1/member_pb.ts +200 -0
  81. package/gen/api/open/v1/newsletter_pb.ts +77 -0
  82. package/gen/api/open/v1/page_pb.ts +236 -0
  83. package/gen/api/open/v1/post_pb.ts +834 -0
  84. package/gen/api/open/v1/privacy_pb.ts +257 -0
  85. package/gen/api/open/v1/program_event_pb.ts +1024 -0
  86. package/gen/api/open/v1/release_pb.ts +758 -0
  87. package/gen/api/open/v1/series_pb.ts +210 -0
  88. package/gen/api/open/v1/share_link_pb.ts +106 -0
  89. package/gen/api/open/v1/sitemap_pb.ts +188 -0
  90. package/gen/api/open/v1/tag_pb.ts +136 -0
  91. package/gen/api/open/v1/terms_pb.ts +257 -0
  92. package/gen/api/open/v1/translation_pb.ts +103 -0
  93. package/gen/api/open/v1/work_pb.ts +904 -0
  94. package/gen/api/policy/v1/access_pb.ts +105 -0
  95. package/gen/api/policy/v1/spicedb/artist.ts +101 -0
  96. package/gen/api/policy/v1/spicedb/audience.ts +64 -0
  97. package/gen/api/policy/v1/spicedb/campaign.ts +49 -0
  98. package/gen/api/policy/v1/spicedb/core.ts +196 -0
  99. package/gen/api/policy/v1/spicedb/email_authoring.ts +91 -0
  100. package/gen/api/policy/v1/spicedb/email_delivery.ts +44 -0
  101. package/gen/api/policy/v1/spicedb/file.ts +49 -0
  102. package/gen/api/policy/v1/spicedb/form.ts +54 -0
  103. package/gen/api/policy/v1/spicedb/internal.ts +350 -0
  104. package/gen/api/policy/v1/spicedb/label.ts +98 -0
  105. package/gen/api/policy/v1/spicedb/legal_policy.ts +103 -0
  106. package/gen/api/policy/v1/spicedb/map_theme.ts +48 -0
  107. package/gen/api/policy/v1/spicedb/member.ts +47 -0
  108. package/gen/api/policy/v1/spicedb/menu.ts +48 -0
  109. package/gen/api/policy/v1/spicedb/page.ts +54 -0
  110. package/gen/api/policy/v1/spicedb/post.ts +105 -0
  111. package/gen/api/policy/v1/spicedb/post_series.ts +70 -0
  112. package/gen/api/policy/v1/spicedb/program_event.ts +66 -0
  113. package/gen/api/policy/v1/spicedb/program_event_series.ts +62 -0
  114. package/gen/api/policy/v1/spicedb/reference_data.ts +209 -0
  115. package/gen/api/policy/v1/spicedb/release.ts +81 -0
  116. package/gen/api/policy/v1/spicedb/site_settings.ts +49 -0
  117. package/gen/api/policy/v1/spicedb/translation.ts +46 -0
  118. package/gen/api/policy/v1/spicedb/work.ts +58 -0
  119. package/package.json +66 -0
  120. package/tsconfig.json +15 -0
@@ -0,0 +1,81 @@
1
+ // Code generated by scripts/generated/generate-spicedb-catalog.mjs.
2
+ // DO NOT EDIT.
3
+ //
4
+ // Domain: release — Release and Track lifecycle policy
5
+
6
+ import {
7
+ accountIdentityRelationshipSubject,
8
+ createCan,
9
+ createRelationshipMutation,
10
+ createRelationshipSnapshotPlan,
11
+ createResource,
12
+ createResourceLookup,
13
+ platformRelationshipSubject,
14
+ RelationshipOperation,
15
+ resourceRelationshipSubject,
16
+ } from "./internal.ts";
17
+ import type {
18
+ Actor,
19
+ Can,
20
+ RelationshipMutation,
21
+ RelationshipSnapshotPlan,
22
+ Resource,
23
+ ResourceLookup,
24
+ } from "./internal.ts";
25
+
26
+ export const Release = Object.freeze({
27
+ Resource: (id: string): Resource => createResource("release", id),
28
+ LookupManage: (): ResourceLookup => createResourceLookup("release", "manage"),
29
+ View: (id: string): Can => createCan("release", id, "view", "view"),
30
+ Edit: (id: string): Can => createCan("release", id, "edit", "edit"),
31
+ Delete: (id: string): Can => createCan("release", id, "delete", "delete"),
32
+ Publish: (id: string): Can => createCan("release", id, "publish", "publish"),
33
+ Manage: (id: string): Can => createCan("release", id, "manage", "manage"),
34
+ ManageShareLinks: (id: string): Can =>
35
+ createCan("release", id, "manage_share_links", "manage_share_links"),
36
+ Create: (): Can =>
37
+ createCan("platform", "global", "release.create", "is_admin"),
38
+ List: (): Can => createCan("platform", "global", "release.list", "is_admin"),
39
+ Snapshot: (id: string): RelationshipSnapshotPlan =>
40
+ createRelationshipSnapshotPlan("release", id, "platform_admin", ""),
41
+ TouchPolicy: (id: string): RelationshipMutation =>
42
+ createRelationshipMutation(
43
+ createResource("release", id),
44
+ "policy",
45
+ platformRelationshipSubject(),
46
+ RelationshipOperation.Touch,
47
+ ),
48
+ DeletePolicy: (id: string): RelationshipMutation =>
49
+ createRelationshipMutation(
50
+ createResource("release", id),
51
+ "policy",
52
+ platformRelationshipSubject(),
53
+ RelationshipOperation.Delete,
54
+ ),
55
+ });
56
+
57
+ export const Track = Object.freeze({
58
+ Resource: (id: string): Resource => createResource("track", id),
59
+ LookupManage: (): ResourceLookup => createResourceLookup("track", "manage"),
60
+ View: (id: string): Can => createCan("track", id, "view", "view"),
61
+ Edit: (id: string): Can => createCan("track", id, "edit", "edit"),
62
+ Delete: (id: string): Can => createCan("track", id, "delete", "delete"),
63
+ Manage: (id: string): Can => createCan("track", id, "manage", "manage"),
64
+
65
+ Snapshot: (id: string): RelationshipSnapshotPlan =>
66
+ createRelationshipSnapshotPlan("track", id, "platform_admin", ""),
67
+ TouchPolicy: (id: string): RelationshipMutation =>
68
+ createRelationshipMutation(
69
+ createResource("track", id),
70
+ "policy",
71
+ platformRelationshipSubject(),
72
+ RelationshipOperation.Touch,
73
+ ),
74
+ DeletePolicy: (id: string): RelationshipMutation =>
75
+ createRelationshipMutation(
76
+ createResource("track", id),
77
+ "policy",
78
+ platformRelationshipSubject(),
79
+ RelationshipOperation.Delete,
80
+ ),
81
+ });
@@ -0,0 +1,49 @@
1
+ // Code generated by scripts/generated/generate-spicedb-catalog.mjs.
2
+ // DO NOT EDIT.
3
+ //
4
+ // Domain: site_settings — Site Settings resource policy
5
+
6
+ import {
7
+ accountIdentityRelationshipSubject,
8
+ createCan,
9
+ createRelationshipMutation,
10
+ createRelationshipSnapshotPlan,
11
+ createResource,
12
+ platformRelationshipSubject,
13
+ RelationshipOperation,
14
+ resourceRelationshipSubject,
15
+ } from "./internal.ts";
16
+ import type {
17
+ Actor,
18
+ Can,
19
+ RelationshipMutation,
20
+ RelationshipSnapshotPlan,
21
+ Resource,
22
+ } from "./internal.ts";
23
+
24
+ export const SiteSetting = Object.freeze({
25
+ Resource: (id: string): Resource => createResource("site_setting", id),
26
+ View: (id: string): Can => createCan("site_setting", id, "view", "view"),
27
+ Edit: (id: string): Can => createCan("site_setting", id, "edit", "edit"),
28
+ Delete: (id: string): Can =>
29
+ createCan("site_setting", id, "delete", "delete"),
30
+ Manage: (id: string): Can =>
31
+ createCan("site_setting", id, "manage", "manage"),
32
+
33
+ Snapshot: (id: string): RelationshipSnapshotPlan =>
34
+ createRelationshipSnapshotPlan("site_setting", id, "platform_admin", ""),
35
+ TouchPolicy: (id: string): RelationshipMutation =>
36
+ createRelationshipMutation(
37
+ createResource("site_setting", id),
38
+ "policy",
39
+ platformRelationshipSubject(),
40
+ RelationshipOperation.Touch,
41
+ ),
42
+ DeletePolicy: (id: string): RelationshipMutation =>
43
+ createRelationshipMutation(
44
+ createResource("site_setting", id),
45
+ "policy",
46
+ platformRelationshipSubject(),
47
+ RelationshipOperation.Delete,
48
+ ),
49
+ });
@@ -0,0 +1,46 @@
1
+ // Code generated by scripts/generated/generate-spicedb-catalog.mjs.
2
+ // DO NOT EDIT.
3
+ //
4
+ // Domain: translation — Translation runtime settings and provider policy
5
+
6
+ import {
7
+ accountIdentityRelationshipSubject,
8
+ createCan,
9
+ createRelationshipMutation,
10
+ createRelationshipSnapshotPlan,
11
+ createResource,
12
+ platformRelationshipSubject,
13
+ RelationshipOperation,
14
+ resourceRelationshipSubject,
15
+ } from "./internal.ts";
16
+ import type {
17
+ Actor,
18
+ Can,
19
+ RelationshipMutation,
20
+ RelationshipSnapshotPlan,
21
+ Resource,
22
+ } from "./internal.ts";
23
+
24
+ export const TranslationSettings = Object.freeze({
25
+ Resource: (id: string): Resource =>
26
+ createResource("translation_settings", id),
27
+
28
+ View: (): Can =>
29
+ createCan("platform", "global", "translation_settings.view", "is_admin"),
30
+ Update: (): Can =>
31
+ createCan("platform", "global", "translation_settings.update", "is_admin"),
32
+ });
33
+
34
+ export const TranslationProvider = Object.freeze({
35
+ Resource: (id: string): Resource =>
36
+ createResource("translation_provider", id),
37
+
38
+ List: (): Can =>
39
+ createCan("platform", "global", "translation_provider.list", "is_admin"),
40
+ Create: (): Can =>
41
+ createCan("platform", "global", "translation_provider.create", "is_admin"),
42
+ Update: (): Can =>
43
+ createCan("platform", "global", "translation_provider.update", "is_admin"),
44
+ Delete: (): Can =>
45
+ createCan("platform", "global", "translation_provider.delete", "is_admin"),
46
+ });
@@ -0,0 +1,58 @@
1
+ // Code generated by scripts/generated/generate-spicedb-catalog.mjs.
2
+ // DO NOT EDIT.
3
+ //
4
+ // Domain: work — Work lifecycle, archived editing, and share-link policy
5
+
6
+ import {
7
+ accountIdentityRelationshipSubject,
8
+ createCan,
9
+ createRelationshipMutation,
10
+ createRelationshipSnapshotPlan,
11
+ createResource,
12
+ createResourceLookup,
13
+ platformRelationshipSubject,
14
+ RelationshipOperation,
15
+ resourceRelationshipSubject,
16
+ } from "./internal.ts";
17
+ import type {
18
+ Actor,
19
+ Can,
20
+ RelationshipMutation,
21
+ RelationshipSnapshotPlan,
22
+ Resource,
23
+ ResourceLookup,
24
+ } from "./internal.ts";
25
+
26
+ export const Work = Object.freeze({
27
+ Resource: (id: string): Resource => createResource("work", id),
28
+ LookupManage: (): ResourceLookup => createResourceLookup("work", "manage"),
29
+ View: (id: string): Can => createCan("work", id, "view", "view"),
30
+ Edit: (id: string): Can => createCan("work", id, "edit", "edit"),
31
+ ViewArchived: (id: string): Can =>
32
+ createCan("work", id, "view_archived", "view_archived"),
33
+ EditArchived: (id: string): Can =>
34
+ createCan("work", id, "edit_archived", "edit_archived"),
35
+ Delete: (id: string): Can => createCan("work", id, "delete", "delete"),
36
+ Publish: (id: string): Can => createCan("work", id, "publish", "publish"),
37
+ Manage: (id: string): Can => createCan("work", id, "manage", "manage"),
38
+ ManageShareLinks: (id: string): Can =>
39
+ createCan("work", id, "manage_share_links", "manage_share_links"),
40
+ Create: (): Can => createCan("platform", "global", "work.create", "is_admin"),
41
+ List: (): Can => createCan("platform", "global", "work.list", "is_admin"),
42
+ Snapshot: (id: string): RelationshipSnapshotPlan =>
43
+ createRelationshipSnapshotPlan("work", id, "platform_admin", ""),
44
+ TouchPolicy: (id: string): RelationshipMutation =>
45
+ createRelationshipMutation(
46
+ createResource("work", id),
47
+ "policy",
48
+ platformRelationshipSubject(),
49
+ RelationshipOperation.Touch,
50
+ ),
51
+ DeletePolicy: (id: string): RelationshipMutation =>
52
+ createRelationshipMutation(
53
+ createResource("work", id),
54
+ "policy",
55
+ platformRelationshipSubject(),
56
+ RelationshipOperation.Delete,
57
+ ),
58
+ });
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@echovisionlab/geul-proto",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "scripts": {
7
+ "typecheck": "tsc --noEmit",
8
+ "lint": "echo \"No lintable source files in @echovisionlab/geul-proto\"",
9
+ "lint-fix": "echo \"No lintable source files in @echovisionlab/geul-proto\""
10
+ },
11
+ "exports": {
12
+ "./secure/*": "./gen/api/manage/v1/*",
13
+ "./public/*": "./gen/api/open/v1/*",
14
+ "./common/*": "./gen/api/common/v1/*",
15
+ "./content/block_catalog.ts": "./gen/api/content/v1/block_catalog.ts",
16
+ "./content/block_content_pb.ts": "./gen/api/content/v1/block_content_pb.ts",
17
+ "./content/*": "./gen/api/content/v1/*",
18
+ "./intra/*": "./gen/api/intra/v1/*",
19
+ "./policy/access_pb.ts": "./gen/api/policy/v1/access_pb.ts",
20
+ "./policy/spicedb/core.ts": "./gen/api/policy/v1/spicedb/core.ts",
21
+ "./policy/spicedb/artist.ts": "./gen/api/policy/v1/spicedb/artist.ts",
22
+ "./policy/spicedb/audience.ts": "./gen/api/policy/v1/spicedb/audience.ts",
23
+ "./policy/spicedb/campaign.ts": "./gen/api/policy/v1/spicedb/campaign.ts",
24
+ "./policy/spicedb/email_authoring.ts": "./gen/api/policy/v1/spicedb/email_authoring.ts",
25
+ "./policy/spicedb/email_delivery.ts": "./gen/api/policy/v1/spicedb/email_delivery.ts",
26
+ "./policy/spicedb/file.ts": "./gen/api/policy/v1/spicedb/file.ts",
27
+ "./policy/spicedb/form.ts": "./gen/api/policy/v1/spicedb/form.ts",
28
+ "./policy/spicedb/label.ts": "./gen/api/policy/v1/spicedb/label.ts",
29
+ "./policy/spicedb/legal_policy.ts": "./gen/api/policy/v1/spicedb/legal_policy.ts",
30
+ "./policy/spicedb/map_theme.ts": "./gen/api/policy/v1/spicedb/map_theme.ts",
31
+ "./policy/spicedb/member.ts": "./gen/api/policy/v1/spicedb/member.ts",
32
+ "./policy/spicedb/menu.ts": "./gen/api/policy/v1/spicedb/menu.ts",
33
+ "./policy/spicedb/page.ts": "./gen/api/policy/v1/spicedb/page.ts",
34
+ "./policy/spicedb/post.ts": "./gen/api/policy/v1/spicedb/post.ts",
35
+ "./policy/spicedb/post_series.ts": "./gen/api/policy/v1/spicedb/post_series.ts",
36
+ "./policy/spicedb/program_event.ts": "./gen/api/policy/v1/spicedb/program_event.ts",
37
+ "./policy/spicedb/program_event_series.ts": "./gen/api/policy/v1/spicedb/program_event_series.ts",
38
+ "./policy/spicedb/reference_data.ts": "./gen/api/policy/v1/spicedb/reference_data.ts",
39
+ "./policy/spicedb/release.ts": "./gen/api/policy/v1/spicedb/release.ts",
40
+ "./policy/spicedb/site_settings.ts": "./gen/api/policy/v1/spicedb/site_settings.ts",
41
+ "./policy/spicedb/translation.ts": "./gen/api/policy/v1/spicedb/translation.ts",
42
+ "./policy/spicedb/work.ts": "./gen/api/policy/v1/spicedb/work.ts"
43
+ },
44
+ "dependencies": {
45
+ "@bufbuild/protobuf": "^2.14.0"
46
+ },
47
+ "devDependencies": {
48
+ "@types/node": "^24.13.3",
49
+ "@typescript/native": "npm:typescript@7.0.2",
50
+ "eslint": "^10.8.1",
51
+ "typescript": "npm:@typescript/typescript6@6.0.2",
52
+ "typescript-eslint": "^8.67.0"
53
+ },
54
+ "license": "PolyForm-Noncommercial-1.0.0",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/echovisionlab/geul-event-contracts.git"
58
+ },
59
+ "homepage": "https://github.com/echovisionlab/geul-event-contracts#readme",
60
+ "bugs": {
61
+ "url": "https://github.com/echovisionlab/geul-event-contracts/issues"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ }
66
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "allowImportingTsExtensions": true,
7
+ "strict": true,
8
+ "esModuleInterop": true,
9
+ "declaration": true,
10
+ "declarationMap": true,
11
+ "noEmit": true
12
+ },
13
+ "include": ["gen/**/*", "src/**/*"],
14
+ "exclude": ["node_modules"]
15
+ }