@stigmer/protos 0.0.39 → 0.0.41

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 (101) hide show
  1. package/ai/stigmer/agentic/agent/v1/command_connect.d.ts +18 -0
  2. package/ai/stigmer/agentic/agent/v1/command_connect.js +18 -0
  3. package/ai/stigmer/agentic/agent/v1/command_connect.js.map +1 -1
  4. package/ai/stigmer/agentic/agent/v1/command_pb.d.ts +18 -0
  5. package/ai/stigmer/agentic/agent/v1/command_pb.js +2 -1
  6. package/ai/stigmer/agentic/agent/v1/command_pb.js.map +1 -1
  7. package/ai/stigmer/agentic/agent/v1/query_pb.js +1 -1
  8. package/ai/stigmer/agentic/agent/v1/query_pb.js.map +1 -1
  9. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js +1 -1
  10. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
  11. package/ai/stigmer/agentic/agentinstance/v1/command_connect.d.ts +1 -3
  12. package/ai/stigmer/agentic/agentinstance/v1/command_connect.js +1 -3
  13. package/ai/stigmer/agentic/agentinstance/v1/command_connect.js.map +1 -1
  14. package/ai/stigmer/agentic/agentinstance/v1/command_pb.d.ts +1 -3
  15. package/ai/stigmer/agentic/agentinstance/v1/command_pb.js +1 -1
  16. package/ai/stigmer/agentic/agentinstance/v1/command_pb.js.map +1 -1
  17. package/ai/stigmer/agentic/agentinstance/v1/query_pb.js +1 -1
  18. package/ai/stigmer/agentic/agentinstance/v1/query_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/environment/v1/command_pb.js +1 -1
  20. package/ai/stigmer/agentic/environment/v1/command_pb.js.map +1 -1
  21. package/ai/stigmer/agentic/environment/v1/query_pb.js +1 -1
  22. package/ai/stigmer/agentic/environment/v1/query_pb.js.map +1 -1
  23. package/ai/stigmer/agentic/executioncontext/v1/api_pb.d.ts +1 -1
  24. package/ai/stigmer/agentic/executioncontext/v1/command_connect.d.ts +11 -2
  25. package/ai/stigmer/agentic/executioncontext/v1/command_connect.js +11 -2
  26. package/ai/stigmer/agentic/executioncontext/v1/command_connect.js.map +1 -1
  27. package/ai/stigmer/agentic/executioncontext/v1/command_pb.d.ts +11 -2
  28. package/ai/stigmer/agentic/executioncontext/v1/command_pb.js +9 -2
  29. package/ai/stigmer/agentic/executioncontext/v1/command_pb.js.map +1 -1
  30. package/ai/stigmer/agentic/executioncontext/v1/query_connect.d.ts +13 -8
  31. package/ai/stigmer/agentic/executioncontext/v1/query_connect.js +13 -8
  32. package/ai/stigmer/agentic/executioncontext/v1/query_connect.js.map +1 -1
  33. package/ai/stigmer/agentic/executioncontext/v1/query_pb.d.ts +13 -8
  34. package/ai/stigmer/agentic/executioncontext/v1/query_pb.js +10 -1
  35. package/ai/stigmer/agentic/executioncontext/v1/query_pb.js.map +1 -1
  36. package/ai/stigmer/agentic/mcpserver/v1/command_connect.d.ts +18 -0
  37. package/ai/stigmer/agentic/mcpserver/v1/command_connect.js +18 -0
  38. package/ai/stigmer/agentic/mcpserver/v1/command_connect.js.map +1 -1
  39. package/ai/stigmer/agentic/mcpserver/v1/command_pb.d.ts +18 -1
  40. package/ai/stigmer/agentic/mcpserver/v1/command_pb.js +1 -1
  41. package/ai/stigmer/agentic/mcpserver/v1/command_pb.js.map +1 -1
  42. package/ai/stigmer/agentic/mcpserver/v1/query_pb.js +1 -1
  43. package/ai/stigmer/agentic/mcpserver/v1/query_pb.js.map +1 -1
  44. package/ai/stigmer/agentic/session/v1/query_connect.d.ts +2 -0
  45. package/ai/stigmer/agentic/session/v1/query_connect.js +2 -0
  46. package/ai/stigmer/agentic/session/v1/query_connect.js.map +1 -1
  47. package/ai/stigmer/agentic/session/v1/query_pb.d.ts +2 -0
  48. package/ai/stigmer/agentic/session/v1/query_pb.js +1 -1
  49. package/ai/stigmer/agentic/session/v1/query_pb.js.map +1 -1
  50. package/ai/stigmer/agentic/skill/v1/command_connect.d.ts +18 -0
  51. package/ai/stigmer/agentic/skill/v1/command_connect.js +18 -0
  52. package/ai/stigmer/agentic/skill/v1/command_connect.js.map +1 -1
  53. package/ai/stigmer/agentic/skill/v1/command_pb.d.ts +18 -0
  54. package/ai/stigmer/agentic/skill/v1/command_pb.js +2 -1
  55. package/ai/stigmer/agentic/skill/v1/command_pb.js.map +1 -1
  56. package/ai/stigmer/agentic/workflow/v1/query_pb.js +1 -1
  57. package/ai/stigmer/agentic/workflow/v1/query_pb.js.map +1 -1
  58. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js +1 -1
  59. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -1
  60. package/ai/stigmer/agentic/workflowinstance/v1/command_pb.js +1 -1
  61. package/ai/stigmer/agentic/workflowinstance/v1/command_pb.js.map +1 -1
  62. package/ai/stigmer/agentic/workflowinstance/v1/query_pb.js +1 -1
  63. package/ai/stigmer/agentic/workflowinstance/v1/query_pb.js.map +1 -1
  64. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +1 -1
  65. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  66. package/ai/stigmer/commons/apiresource/io_pb.d.ts +34 -0
  67. package/ai/stigmer/commons/apiresource/io_pb.js +8 -2
  68. package/ai/stigmer/commons/apiresource/io_pb.js.map +1 -1
  69. package/ai/stigmer/iam/apikey/v1/query_connect.d.ts +0 -3
  70. package/ai/stigmer/iam/apikey/v1/query_connect.js +0 -3
  71. package/ai/stigmer/iam/apikey/v1/query_connect.js.map +1 -1
  72. package/ai/stigmer/iam/apikey/v1/query_pb.d.ts +0 -3
  73. package/ai/stigmer/iam/apikey/v1/query_pb.js +1 -1
  74. package/ai/stigmer/iam/apikey/v1/query_pb.js.map +1 -1
  75. package/ai/stigmer/iam/iampolicy/v1/command_connect.d.ts +6 -48
  76. package/ai/stigmer/iam/iampolicy/v1/command_connect.js +6 -48
  77. package/ai/stigmer/iam/iampolicy/v1/command_connect.js.map +1 -1
  78. package/ai/stigmer/iam/iampolicy/v1/command_pb.d.ts +6 -47
  79. package/ai/stigmer/iam/iampolicy/v1/command_pb.js +1 -1
  80. package/ai/stigmer/iam/iampolicy/v1/command_pb.js.map +1 -1
  81. package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.d.ts +28 -54
  82. package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.js +28 -54
  83. package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.js.map +1 -1
  84. package/ai/stigmer/iam/identityaccount/v1/command_pb.js +1 -1
  85. package/ai/stigmer/iam/identityaccount/v1/command_pb.js.map +1 -1
  86. package/ai/stigmer/iam/identityprovider/v1/query_connect.d.ts +1 -0
  87. package/ai/stigmer/iam/identityprovider/v1/query_connect.js +1 -0
  88. package/ai/stigmer/iam/identityprovider/v1/query_connect.js.map +1 -1
  89. package/ai/stigmer/iam/identityprovider/v1/query_pb.d.ts +1 -0
  90. package/ai/stigmer/iam/identityprovider/v1/query_pb.js +1 -1
  91. package/ai/stigmer/iam/identityprovider/v1/query_pb.js.map +1 -1
  92. package/ai/stigmer/platform/github/v1/service_connect.d.ts +4 -4
  93. package/ai/stigmer/platform/github/v1/service_connect.js +4 -4
  94. package/ai/stigmer/platform/github/v1/service_pb.d.ts +2 -2
  95. package/ai/stigmer/platform/github/v1/service_pb.js +1 -1
  96. package/ai/stigmer/tenancy/organization/v1/spec_pb.d.ts +8 -0
  97. package/ai/stigmer/tenancy/organization/v1/spec_pb.js +1 -1
  98. package/ai/stigmer/tenancy/organization/v1/spec_pb.js.map +1 -1
  99. package/ai/stigmer/tenancy/project/v1/query_pb.js +1 -1
  100. package/ai/stigmer/tenancy/project/v1/query_pb.js.map +1 -1
  101. package/package.json +1 -1
@@ -3,12 +3,13 @@
3
3
  /* eslint-disable */
4
4
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
5
  import { file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_kind } from "./apiresourcekind/api_resource_kind_pb";
6
+ import { file_ai_stigmer_commons_apiresource_enum } from "./enum_pb";
6
7
  import { file_ai_stigmer_commons_rpc_pagination } from "../rpc/pagination_pb";
7
8
  import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb";
8
9
  /**
9
10
  * Describes the file ai/stigmer/commons/apiresource/io.proto.
10
11
  */
11
- export const file_ai_stigmer_commons_apiresource_io = /*@__PURE__*/ fileDesc("CidhaS9zdGlnbWVyL2NvbW1vbnMvYXBpcmVzb3VyY2UvaW8ucHJvdG8SHmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZSImCg1BcGlSZXNvdXJjZUlkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiXQoWQXBpUmVzb3VyY2VEZWxldGVJbnB1dBIbCgtyZXNvdXJjZV9pZBgBIAEoCUIGukgDyAEBEhcKD3ZlcnNpb25fbWVzc2FnZRgCIAEoCRINCgVmb3JjZRgDIAEoCCJKCh1BcGlSZXNvdXJjZUJ5T3JnQnlTbHVnUmVxdWVzdBITCgNvcmcYASABKAlCBrpIA8gBARIUCgRzbHVnGAIgASgJQga6SAPIAQEilAEKF0ZpbmRBcGlSZXNvdXJjZXNSZXF1ZXN0EhMKA29yZxgBIAEoCUIGukgDyAEBEgwKBGtpbmQYAyABKAkSLgoEcGFnZRgEIAEoCzIgLmFpLnN0aWdtZXIuY29tbW9ucy5ycGMuUGFnZUluZm8SEwoLcGFnZV9udW1iZXIYBSABKAUSEQoJcGFnZV9zaXplGAYgASgFIoYCChRBcGlSZXNvdXJjZVJlZmVyZW5jZRIqCgNvcmcYASABKAlCHbpIGnIYGD8yFF4kfF5bYS16XVthLXowLTktXSokEk0KBGtpbmQYAiABKA4yPy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuYXBpcmVzb3VyY2VraW5kLkFwaVJlc291cmNlS2luZBItCgRzbHVnGAMgASgJQh+6SBzIAQFyFxABGD8yEV5bYS16XVthLXowLTktXSokEkQKB3ZlcnNpb24YBCABKAlCM7pIMHIuMixeJHxebGF0ZXN0JHxeW2EtekEtWjAtOS5fLV0rJHxeW2EtZjAtOV17NjR9JGIGcHJvdG8z", [file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_kind, file_ai_stigmer_commons_rpc_pagination, file_buf_validate_validate]);
12
+ export const file_ai_stigmer_commons_apiresource_io = /*@__PURE__*/ fileDesc("CidhaS9zdGlnbWVyL2NvbW1vbnMvYXBpcmVzb3VyY2UvaW8ucHJvdG8SHmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZSImCg1BcGlSZXNvdXJjZUlkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiXQoWQXBpUmVzb3VyY2VEZWxldGVJbnB1dBIbCgtyZXNvdXJjZV9pZBgBIAEoCUIGukgDyAEBEhcKD3ZlcnNpb25fbWVzc2FnZRgCIAEoCRINCgVmb3JjZRgDIAEoCCJKCh1BcGlSZXNvdXJjZUJ5T3JnQnlTbHVnUmVxdWVzdBITCgNvcmcYASABKAlCBrpIA8gBARIUCgRzbHVnGAIgASgJQga6SAPIAQEilAEKF0ZpbmRBcGlSZXNvdXJjZXNSZXF1ZXN0EhMKA29yZxgBIAEoCUIGukgDyAEBEgwKBGtpbmQYAyABKAkSLgoEcGFnZRgEIAEoCzIgLmFpLnN0aWdtZXIuY29tbW9ucy5ycGMuUGFnZUluZm8SEwoLcGFnZV9udW1iZXIYBSABKAUSEQoJcGFnZV9zaXplGAYgASgFIosBChVVcGRhdGVWaXNpYmlsaXR5SW5wdXQSGwoLcmVzb3VyY2VfaWQYASABKAlCBrpIA8gBARJVCgp2aXNpYmlsaXR5GAIgASgOMjUuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlVmlzaWJpbGl0eUIKukgHggEEEAEgACKGAgoUQXBpUmVzb3VyY2VSZWZlcmVuY2USKgoDb3JnGAEgASgJQh26SBpyGBg/MhReJHxeW2Etel1bYS16MC05LV0qJBJNCgRraW5kGAIgASgOMj8uYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLmFwaXJlc291cmNla2luZC5BcGlSZXNvdXJjZUtpbmQSLQoEc2x1ZxgDIAEoCUIfukgcyAEBchcQARg/MhFeW2Etel1bYS16MC05LV0qJBJECgd2ZXJzaW9uGAQgASgJQjO6SDByLjIsXiR8XmxhdGVzdCR8XlthLXpBLVowLTkuXy1dKyR8XlthLWYwLTldezY0fSRiBnByb3RvMw", [file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_kind, file_ai_stigmer_commons_apiresource_enum, file_ai_stigmer_commons_rpc_pagination, file_buf_validate_validate]);
12
13
  /**
13
14
  * Describes the message ai.stigmer.commons.apiresource.ApiResourceId.
14
15
  * Use `create(ApiResourceIdSchema)` to create a new message.
@@ -29,9 +30,14 @@ export const ApiResourceByOrgBySlugRequestSchema = /*@__PURE__*/ messageDesc(fil
29
30
  * Use `create(FindApiResourcesRequestSchema)` to create a new message.
30
31
  */
31
32
  export const FindApiResourcesRequestSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_commons_apiresource_io, 3);
33
+ /**
34
+ * Describes the message ai.stigmer.commons.apiresource.UpdateVisibilityInput.
35
+ * Use `create(UpdateVisibilityInputSchema)` to create a new message.
36
+ */
37
+ export const UpdateVisibilityInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_commons_apiresource_io, 4);
32
38
  /**
33
39
  * Describes the message ai.stigmer.commons.apiresource.ApiResourceReference.
34
40
  * Use `create(ApiResourceReferenceSchema)` to create a new message.
35
41
  */
36
- export const ApiResourceReferenceSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_commons_apiresource_io, 4);
42
+ export const ApiResourceReferenceSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_commons_apiresource_io, 5);
37
43
  //# sourceMappingURL=io_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../ai/stigmer/commons/apiresource/io_pb.ts"],"names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MAAM,wCAAwC,CAAC;AAE/H,OAAO,EAAE,wCAAwC,EAAE,MAAM,WAAW,CAAC;AAErE,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAY,aAAa,CAC1E,QAAQ,CAAC,gnCAAgnC,EAAE,CAAC,qEAAqE,EAAE,wCAAwC,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAcpzC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AA+BzD;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AAuBzD;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA8C,aAAa,CACzG,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AA4CzD;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwC,aAAa,CAC7F,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AAgCzD;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AAiEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC"}
@@ -20,9 +20,6 @@ export declare const ApiKeyQueryController: {
20
20
  /**
21
21
  * lookup api-key by hashed key
22
22
  *
23
- * Authorization is handled in the handler after loading the resource
24
- * (input doesn't contain API key ID, so proto-level auth cannot work)
25
- *
26
23
  * @generated from rpc ai.stigmer.iam.apikey.v1.ApiKeyQueryController.getByKeyHash
27
24
  */
28
25
  readonly getByKeyHash: {
@@ -25,9 +25,6 @@ export const ApiKeyQueryController = {
25
25
  /**
26
26
  * lookup api-key by hashed key
27
27
  *
28
- * Authorization is handled in the handler after loading the resource
29
- * (input doesn't contain API key ID, so proto-level auth cannot work)
30
- *
31
28
  * @generated from rpc ai.stigmer.iam.apikey.v1.ApiKeyQueryController.getByKeyHash
32
29
  */
33
30
  getByKeyHash: {
@@ -1 +1 @@
1
- {"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/apikey/v1/query_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,8GAA8G;AAC9G,oBAAoB;AACpB,cAAc;AAId,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAE,gDAAgD;IAC1D,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,MAAM;YACT,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,MAAM;YACT,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,CAAC,EAAE,KAAK;YACR,CAAC,EAAE,OAAO;YACV,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/apikey/v1/query_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,8GAA8G;AAC9G,oBAAoB;AACpB,cAAc;AAId,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAE,gDAAgD;IAC1D,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,MAAM;YACT,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,MAAM;YACT,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,CAAC,EAAE,KAAK;YACR,CAAC,EAAE,OAAO;YACV,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -25,9 +25,6 @@ export declare const ApiKeyQueryController: GenService<{
25
25
  /**
26
26
  * lookup api-key by hashed key
27
27
  *
28
- * Authorization is handled in the handler after loading the resource
29
- * (input doesn't contain API key ID, so proto-level auth cannot work)
30
- *
31
28
  * @generated from rpc ai.stigmer.iam.apikey.v1.ApiKeyQueryController.getByKeyHash
32
29
  */
33
30
  getByKeyHash: {
@@ -10,7 +10,7 @@ import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
10
10
  /**
11
11
  * Describes the file ai/stigmer/iam/apikey/v1/query.proto.
12
12
  */
13
- export const file_ai_stigmer_iam_apikey_v1_query = /*@__PURE__*/ fileDesc("CiRhaS9zdGlnbWVyL2lhbS9hcGlrZXkvdjEvcXVlcnkucHJvdG8SGGFpLnN0aWdtZXIuaWFtLmFwaWtleS52MTK/AgoVQXBpS2V5UXVlcnlDb250cm9sbGVyEnoKA2dldBIiLmFpLnN0aWdtZXIuaWFtLmFwaWtleS52MS5BcGlLZXlJZBogLmFpLnN0aWdtZXIuaWFtLmFwaWtleS52MS5BcGlLZXkiLcK4GCkIAxAMIgV2YWx1ZSocdW5hdXRob3JpemVkIHRvIHZpZXcgYXBpIGtleRJYCgxnZXRCeUtleUhhc2gSJC5haS5zdGlnbWVyLmlhbS5hcGlrZXkudjEuQXBpS2V5SGFzaBogLmFpLnN0aWdtZXIuaWFtLmFwaWtleS52MS5BcGlLZXkiABJKCgdmaW5kQWxsEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GiEuYWkuc3RpZ21lci5pYW0uYXBpa2V5LnYxLkFwaUtleXMiBNC4GAEaBKD/KwxiBnByb3RvMw", [file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_iam_apikey_v1_api, file_ai_stigmer_iam_apikey_v1_io, file_ai_stigmer_iam_iampolicy_v1_rpcauthorization_method_options, file_google_protobuf_empty]);
13
+ export const file_ai_stigmer_iam_apikey_v1_query = /*@__PURE__*/ fileDesc("CiRhaS9zdGlnbWVyL2lhbS9hcGlrZXkvdjEvcXVlcnkucHJvdG8SGGFpLnN0aWdtZXIuaWFtLmFwaWtleS52MTLDAgoVQXBpS2V5UXVlcnlDb250cm9sbGVyEnoKA2dldBIiLmFpLnN0aWdtZXIuaWFtLmFwaWtleS52MS5BcGlLZXlJZBogLmFpLnN0aWdtZXIuaWFtLmFwaWtleS52MS5BcGlLZXkiLcK4GCkIAxAMIgV2YWx1ZSocdW5hdXRob3JpemVkIHRvIHZpZXcgYXBpIGtleRJcCgxnZXRCeUtleUhhc2gSJC5haS5zdGlnbWVyLmlhbS5hcGlrZXkudjEuQXBpS2V5SGFzaBogLmFpLnN0aWdtZXIuaWFtLmFwaWtleS52MS5BcGlLZXkiBNC4GAESSgoHZmluZEFsbBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRohLmFpLnN0aWdtZXIuaWFtLmFwaWtleS52MS5BcGlLZXlzIgTQuBgBGgSg/ysMYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_iam_apikey_v1_api, file_ai_stigmer_iam_apikey_v1_io, file_ai_stigmer_iam_iampolicy_v1_rpcauthorization_method_options, file_google_protobuf_empty]);
14
14
  /**
15
15
  * api-key query controller
16
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/apikey/v1/query_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,8GAA8G;AAC9G,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uDAAuD,EAAE,MAAM,qDAAqD,CAAC;AAE9H,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,gEAAgE,EAAE,MAAM,uDAAuD,CAAC;AAEzI,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAY,aAAa,CACvE,QAAQ,CAAC,ghBAAghB,EAAE,CAAC,uDAAuD,EAAE,iCAAiC,EAAE,gCAAgC,EAAE,gEAAgE,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAE3vB;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAkC7B,aAAa,CAChB,WAAW,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/apikey/v1/query_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,8GAA8G;AAC9G,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uDAAuD,EAAE,MAAM,qDAAqD,CAAC;AAE9H,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,gEAAgE,EAAE,MAAM,uDAAuD,CAAC;AAEzI,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAY,aAAa,CACvE,QAAQ,CAAC,qhBAAqhB,EAAE,CAAC,uDAAuD,EAAE,iCAAiC,EAAE,gCAAgC,EAAE,gEAAgE,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAEhwB;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GA+B7B,aAAa,CAChB,WAAW,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC"}
@@ -95,63 +95,21 @@ export declare const IamPolicyCommandController: {
95
95
  readonly kind: any;
96
96
  };
97
97
  /**
98
- * Create platform link policy (operator-only)
99
- *
100
- * Creates a platform link policy that associates an identity account with the platform.
101
- * This is a privileged operation that can only be called by platform operators.
102
- *
103
- * The operation:
104
- * 1. Validates that caller has operator permission on platform:stigmer
105
- * 2. Validates the input is a platform link (principal=platform, relation=platform)
106
- * 3. Checks for duplicates (idempotent if already exists)
107
- * 4. Creates the policy in the database with auto-generated ID and metadata
108
- * 5. Writes the corresponding tuple to OpenFGA
109
- *
110
- * Authorization:
111
- * - Caller must have 'operator' permission on platform:stigmer
112
- * - This is typically only granted to machine accounts (service-to-service)
113
- *
114
- * Use Cases:
115
- * - Bootstrapping new identity accounts
116
- * - Initial permission setup when standard authorization cannot work yet
117
- * - Establishing platform-level relationships for new resources
118
- *
119
- * Example:
120
- * Input:
121
- * principal: {kind: "platform", id: "stigmer"}
122
- * resource: {kind: "identity_account", id: "ida-alice-123"}
123
- * relation: "platform"
124
- * Result:
125
- * Created IamPolicy linking the identity account to the platform
126
- * Machine accounts with operator permission can now manage this account
127
- *
128
- * Input: IamPolicySpec with principal=platform:stigmer, relation=platform, resource=identity_account:{id}
129
- * Output: The created IamPolicy with generated ID and metadata
130
- *
131
- * @generated from rpc ai.stigmer.iam.iampolicy.v1.IamPolicyCommandController.createPlatformLink
132
- */
133
- readonly createPlatformLink: {
134
- readonly name: "createPlatformLink";
135
- readonly I: any;
136
- readonly O: any;
137
- readonly kind: any;
138
- };
139
- /**
140
- * Bootstrap IAM policy during resource creation (operator-only)
98
+ * Bootstrap IAM policy during resource creation
141
99
  *
142
100
  * Creates IAM policies during resource creation when standard authorization cannot work yet
143
101
  * because no tuples exist. This solves the chicken-and-egg problem where creating the first
144
102
  * policy for a resource requires authorization, but authorization requires that first policy.
145
103
  *
146
104
  * The operation:
147
- * 1. Validates that caller has operator permission on platform:stigmer
105
+ * 1. Validates that caller has can_bootstrap_iam permission on platform:stigmer
148
106
  * 2. Validates the input (principal, resource, relation are all valid)
149
107
  * 3. Checks for duplicates (skips if the exact policy already exists, idempotent)
150
108
  * 4. Creates the policy in the database with auto-generated ID and metadata
151
109
  * 5. Writes the corresponding tuple to OpenFGA (where authorization is enforced)
152
110
  *
153
111
  * Authorization:
154
- * - Caller must have 'operator' permission on platform:stigmer
112
+ * - Caller must have 'can_bootstrap_iam' permission on platform:stigmer
155
113
  * - This is typically only called by resource creation handlers running as machine accounts
156
114
  *
157
115
  * Use Cases:
@@ -183,7 +141,7 @@ export declare const IamPolicyCommandController: {
183
141
  readonly kind: any;
184
142
  };
185
143
  /**
186
- * Cleanup all IAM policies for a deleted resource (operator-only)
144
+ * Cleanup all IAM policies for a deleted resource
187
145
  *
188
146
  * This is a system-level cleanup operation that removes all IAM policies
189
147
  * associated with a deleted resource. It performs bidirectional cleanup:
@@ -191,14 +149,14 @@ export declare const IamPolicyCommandController: {
191
149
  * 2. Policies where resource is the PRINCIPAL (policies where this resource HAS access)
192
150
  *
193
151
  * The operation:
194
- * 1. Validates operator permission on platform:stigmer
152
+ * 1. Validates can_bootstrap_iam permission on platform:stigmer
195
153
  * 2. Finds all policies where resource_id appears (as principal OR resource)
196
154
  * 3. Deletes all matching policies from MongoDB
197
155
  * 4. Removes all corresponding tuples from OpenFGA
198
156
  * 5. Returns Empty (idempotent if no policies exist)
199
157
  *
200
158
  * Authorization:
201
- * - Caller must have 'operator' permission on platform:stigmer
159
+ * - Caller must have 'can_bootstrap_iam' permission on platform:stigmer
202
160
  * - This is typically only granted to platform services
203
161
  *
204
162
  * Use Cases:
@@ -100,63 +100,21 @@ export const IamPolicyCommandController = {
100
100
  kind: MethodKind.Unary,
101
101
  },
102
102
  /**
103
- * Create platform link policy (operator-only)
104
- *
105
- * Creates a platform link policy that associates an identity account with the platform.
106
- * This is a privileged operation that can only be called by platform operators.
107
- *
108
- * The operation:
109
- * 1. Validates that caller has operator permission on platform:stigmer
110
- * 2. Validates the input is a platform link (principal=platform, relation=platform)
111
- * 3. Checks for duplicates (idempotent if already exists)
112
- * 4. Creates the policy in the database with auto-generated ID and metadata
113
- * 5. Writes the corresponding tuple to OpenFGA
114
- *
115
- * Authorization:
116
- * - Caller must have 'operator' permission on platform:stigmer
117
- * - This is typically only granted to machine accounts (service-to-service)
118
- *
119
- * Use Cases:
120
- * - Bootstrapping new identity accounts
121
- * - Initial permission setup when standard authorization cannot work yet
122
- * - Establishing platform-level relationships for new resources
123
- *
124
- * Example:
125
- * Input:
126
- * principal: {kind: "platform", id: "stigmer"}
127
- * resource: {kind: "identity_account", id: "ida-alice-123"}
128
- * relation: "platform"
129
- * Result:
130
- * Created IamPolicy linking the identity account to the platform
131
- * Machine accounts with operator permission can now manage this account
132
- *
133
- * Input: IamPolicySpec with principal=platform:stigmer, relation=platform, resource=identity_account:{id}
134
- * Output: The created IamPolicy with generated ID and metadata
135
- *
136
- * @generated from rpc ai.stigmer.iam.iampolicy.v1.IamPolicyCommandController.createPlatformLink
137
- */
138
- createPlatformLink: {
139
- name: "createPlatformLink",
140
- I: IamPolicySpec,
141
- O: IamPolicy,
142
- kind: MethodKind.Unary,
143
- },
144
- /**
145
- * Bootstrap IAM policy during resource creation (operator-only)
103
+ * Bootstrap IAM policy during resource creation
146
104
  *
147
105
  * Creates IAM policies during resource creation when standard authorization cannot work yet
148
106
  * because no tuples exist. This solves the chicken-and-egg problem where creating the first
149
107
  * policy for a resource requires authorization, but authorization requires that first policy.
150
108
  *
151
109
  * The operation:
152
- * 1. Validates that caller has operator permission on platform:stigmer
110
+ * 1. Validates that caller has can_bootstrap_iam permission on platform:stigmer
153
111
  * 2. Validates the input (principal, resource, relation are all valid)
154
112
  * 3. Checks for duplicates (skips if the exact policy already exists, idempotent)
155
113
  * 4. Creates the policy in the database with auto-generated ID and metadata
156
114
  * 5. Writes the corresponding tuple to OpenFGA (where authorization is enforced)
157
115
  *
158
116
  * Authorization:
159
- * - Caller must have 'operator' permission on platform:stigmer
117
+ * - Caller must have 'can_bootstrap_iam' permission on platform:stigmer
160
118
  * - This is typically only called by resource creation handlers running as machine accounts
161
119
  *
162
120
  * Use Cases:
@@ -188,7 +146,7 @@ export const IamPolicyCommandController = {
188
146
  kind: MethodKind.Unary,
189
147
  },
190
148
  /**
191
- * Cleanup all IAM policies for a deleted resource (operator-only)
149
+ * Cleanup all IAM policies for a deleted resource
192
150
  *
193
151
  * This is a system-level cleanup operation that removes all IAM policies
194
152
  * associated with a deleted resource. It performs bidirectional cleanup:
@@ -196,14 +154,14 @@ export const IamPolicyCommandController = {
196
154
  * 2. Policies where resource is the PRINCIPAL (policies where this resource HAS access)
197
155
  *
198
156
  * The operation:
199
- * 1. Validates operator permission on platform:stigmer
157
+ * 1. Validates can_bootstrap_iam permission on platform:stigmer
200
158
  * 2. Finds all policies where resource_id appears (as principal OR resource)
201
159
  * 3. Deletes all matching policies from MongoDB
202
160
  * 4. Removes all corresponding tuples from OpenFGA
203
161
  * 5. Returns Empty (idempotent if no policies exist)
204
162
  *
205
163
  * Authorization:
206
- * - Caller must have 'operator' permission on platform:stigmer
164
+ * - Caller must have 'can_bootstrap_iam' permission on platform:stigmer
207
165
  * - This is typically only granted to platform services
208
166
  *
209
167
  * Use Cases:
@@ -1 +1 @@
1
- {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/st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command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/iampolicy/v1/command_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,sHAAsH;AACtH,oBAAoB;AACpB,cAAc;AAId,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,QAAQ,EAAE,wDAAwD;IAClE,OAAO,EAAE;QACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA6BG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+BG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAuCG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgCG;QACH,uBAAuB,EAAE;YACvB,IAAI,EAAE,yBAAyB;YAC/B,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -99,62 +99,21 @@ export declare const IamPolicyCommandController: GenService<{
99
99
  output: typeof IamPolicySchema;
100
100
  };
101
101
  /**
102
- * Create platform link policy (operator-only)
103
- *
104
- * Creates a platform link policy that associates an identity account with the platform.
105
- * This is a privileged operation that can only be called by platform operators.
106
- *
107
- * The operation:
108
- * 1. Validates that caller has operator permission on platform:stigmer
109
- * 2. Validates the input is a platform link (principal=platform, relation=platform)
110
- * 3. Checks for duplicates (idempotent if already exists)
111
- * 4. Creates the policy in the database with auto-generated ID and metadata
112
- * 5. Writes the corresponding tuple to OpenFGA
113
- *
114
- * Authorization:
115
- * - Caller must have 'operator' permission on platform:stigmer
116
- * - This is typically only granted to machine accounts (service-to-service)
117
- *
118
- * Use Cases:
119
- * - Bootstrapping new identity accounts
120
- * - Initial permission setup when standard authorization cannot work yet
121
- * - Establishing platform-level relationships for new resources
122
- *
123
- * Example:
124
- * Input:
125
- * principal: {kind: "platform", id: "stigmer"}
126
- * resource: {kind: "identity_account", id: "ida-alice-123"}
127
- * relation: "platform"
128
- * Result:
129
- * Created IamPolicy linking the identity account to the platform
130
- * Machine accounts with operator permission can now manage this account
131
- *
132
- * Input: IamPolicySpec with principal=platform:stigmer, relation=platform, resource=identity_account:{id}
133
- * Output: The created IamPolicy with generated ID and metadata
134
- *
135
- * @generated from rpc ai.stigmer.iam.iampolicy.v1.IamPolicyCommandController.createPlatformLink
136
- */
137
- createPlatformLink: {
138
- methodKind: "unary";
139
- input: typeof IamPolicySpecSchema;
140
- output: typeof IamPolicySchema;
141
- };
142
- /**
143
- * Bootstrap IAM policy during resource creation (operator-only)
102
+ * Bootstrap IAM policy during resource creation
144
103
  *
145
104
  * Creates IAM policies during resource creation when standard authorization cannot work yet
146
105
  * because no tuples exist. This solves the chicken-and-egg problem where creating the first
147
106
  * policy for a resource requires authorization, but authorization requires that first policy.
148
107
  *
149
108
  * The operation:
150
- * 1. Validates that caller has operator permission on platform:stigmer
109
+ * 1. Validates that caller has can_bootstrap_iam permission on platform:stigmer
151
110
  * 2. Validates the input (principal, resource, relation are all valid)
152
111
  * 3. Checks for duplicates (skips if the exact policy already exists, idempotent)
153
112
  * 4. Creates the policy in the database with auto-generated ID and metadata
154
113
  * 5. Writes the corresponding tuple to OpenFGA (where authorization is enforced)
155
114
  *
156
115
  * Authorization:
157
- * - Caller must have 'operator' permission on platform:stigmer
116
+ * - Caller must have 'can_bootstrap_iam' permission on platform:stigmer
158
117
  * - This is typically only called by resource creation handlers running as machine accounts
159
118
  *
160
119
  * Use Cases:
@@ -185,7 +144,7 @@ export declare const IamPolicyCommandController: GenService<{
185
144
  output: typeof IamPolicySchema;
186
145
  };
187
146
  /**
188
- * Cleanup all IAM policies for a deleted resource (operator-only)
147
+ * Cleanup all IAM policies for a deleted resource
189
148
  *
190
149
  * This is a system-level cleanup operation that removes all IAM policies
191
150
  * associated with a deleted resource. It performs bidirectional cleanup:
@@ -193,14 +152,14 @@ export declare const IamPolicyCommandController: GenService<{
193
152
  * 2. Policies where resource is the PRINCIPAL (policies where this resource HAS access)
194
153
  *
195
154
  * The operation:
196
- * 1. Validates operator permission on platform:stigmer
155
+ * 1. Validates can_bootstrap_iam permission on platform:stigmer
197
156
  * 2. Finds all policies where resource_id appears (as principal OR resource)
198
157
  * 3. Deletes all matching policies from MongoDB
199
158
  * 4. Removes all corresponding tuples from OpenFGA
200
159
  * 5. Returns Empty (idempotent if no policies exist)
201
160
  *
202
161
  * Authorization:
203
- * - Caller must have 'operator' permission on platform:stigmer
162
+ * - Caller must have 'can_bootstrap_iam' permission on platform:stigmer
204
163
  * - This is typically only granted to platform services
205
164
  *
206
165
  * Use Cases:
@@ -10,7 +10,7 @@ import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
10
10
  /**
11
11
  * Describes the file ai/stigmer/iam/iampolicy/v1/command.proto.
12
12
  */
13
- export const file_ai_stigmer_iam_iampolicy_v1_command = /*@__PURE__*/ fileDesc("CilhaS9zdGlnbWVyL2lhbS9pYW1wb2xpY3kvdjEvY29tbWFuZC5wcm90bxIbYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxMuoGChpJYW1Qb2xpY3lDb21tYW5kQ29udHJvbGxlchKCAQoGY3JlYXRlEiouYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5Ln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mIGcHJvdG8z", [file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_iam_iampolicy_v1_api, file_ai_stigmer_iam_iampolicy_v1_rpcauthorization_method_options, file_ai_stigmer_iam_iampolicy_v1_spec, file_google_protobuf_empty]);
13
+ export const file_ai_stigmer_iam_iampolicy_v1_command = /*@__PURE__*/ fileDesc("CilhaS9zdGlnbWVyL2lhbS9pYW1wb2xpY3kvdjEvY29tbWFuZC5wcm90bxIbYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxMrkFChpJYW1Qb2xpY3lDb21tYW5kQ29udHJvbGxlchKCAQoGY3JlYXRlEiouYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeVNwZWMaJi5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuSWFtUG9saWN5IiTCuBggCAgqHHVuYXV0aG9yaXplZCB0byBncmFudCBhY2Nlc3MSgwEKBmRlbGV0ZRIqLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5JYW1Qb2xpY3lTcGVjGiYuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeSIlwrgYIQgIKh11bmF1dGhvcml6ZWQgdG8gcmV2b2tlIGFjY2VzcxLCAQoPYm9vdHN0cmFwUG9saWN5EiouYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeVNwZWMaJi5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuSWFtUG9saWN5IlvCuBhXCB0QHypIdW5hdXRob3JpemVkIHRvIGJvb3RzdHJhcCBwb2xpY3kgLSBjYW5fYm9vdHN0cmFwX2lhbSBwZXJtaXNzaW9uIHJlcXVpcmVkMgdzdGlnbWVyEsQBChdjbGVhbnVwUmVzb3VyY2VQb2xpY2llcxIrLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5BcGlSZXNvdXJjZVJlZhoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJkwrgYYAgdEB8qUXVuYXV0aG9yaXplZCB0byBjbGVhbnVwIHJlc291cmNlIHBvbGljaWVzIC0gY2FuX2Jvb3RzdHJhcF9pYW0gcGVybWlzc2lvbiByZXF1aXJlZDIHc3RpZ21lchoEoP8rCmIGcHJvdG8z", [file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_iam_iampolicy_v1_api, file_ai_stigmer_iam_iampolicy_v1_rpcauthorization_method_options, file_ai_stigmer_iam_iampolicy_v1_spec, file_google_protobuf_empty]);
14
14
  /**
15
15
  * IAM Policy Command Controller
16
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/iampolicy/v1/command_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,sHAAsH;AACtH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uDAAuD,EAAE,MAAM,qDAAqD,CAAC;AAE9H,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,gEAAgE,EAAE,MAAM,sCAAsC,CAAC;AAExH,OAAO,EAAE,qCAAqC,EAAE,MAAM,WAAW,CAAC;AAElE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAY,aAAa,CAC5E,QAAQ,CAAC,8vCAA8vC,EAAE,CAAC,uDAAuD,EAAE,oCAAoC,EAAE,gEAAgE,EAAE,qCAAqC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAEj/C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAqMlC,aAAa,CAChB,WAAW,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/iampolicy/v1/command_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,sHAAsH;AACtH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uDAAuD,EAAE,MAAM,qDAAqD,CAAC;AAE9H,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,gEAAgE,EAAE,MAAM,sCAAsC,CAAC;AAExH,OAAO,EAAE,qCAAqC,EAAE,MAAM,WAAW,CAAC;AAElE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAY,aAAa,CAC5E,QAAQ,CAAC,khCAAkhC,EAAE,CAAC,uDAAuD,EAAE,oCAAoC,EAAE,gEAAgE,EAAE,qCAAqC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAErwC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GA4JlC,aAAa,CAChB,WAAW,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC"}
@@ -4,8 +4,10 @@ import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv1";
4
4
  */
5
5
  export declare const file_ai_stigmer_iam_iampolicy_v1_rpcauthorization_iam_permission: GenFile;
6
6
  /**
7
- * ApiResourceIamPermission defines the core permissions used in the authorization model.
8
- * This is a simplified set for a demo project, containing only essential permissions.
7
+ * ApiResourceIamPermission defines the permissions and structural relations
8
+ * used in the Stigmer authorization model. Each value maps to an FGA relation
9
+ * name that appears either in RPC authorization annotations or in FGA tuple
10
+ * creation logic.
9
11
  *
10
12
  * @generated from enum ai.stigmer.iam.iampolicy.v1.rpcauthorization.ApiResourceIamPermission
11
13
  */
@@ -35,143 +37,115 @@ export declare enum ApiResourceIamPermission {
35
37
  /**
36
38
  * Platform-level permissions
37
39
  *
38
- * Platform operator with elevated privileges
39
- *
40
- * @generated from enum value: operator = 5;
41
- */
42
- operator = 5,
43
- /**
44
- * Platform-level access
45
- *
46
- * @generated from enum value: platform = 6;
47
- */
48
- platform = 6,
49
- /**
50
- * Permission to login to back office
51
- *
52
40
  * @generated from enum value: login_to_back_office = 7;
53
41
  */
54
42
  login_to_back_office = 7,
55
43
  /**
56
- * IAM policy management permissions (follows can_* pattern)
57
- *
58
- * Permission to grant/revoke access (create/delete IAM policies)
44
+ * IAM policy management permissions
59
45
  *
60
46
  * @generated from enum value: can_grant_access = 8;
61
47
  */
62
48
  can_grant_access = 8,
63
49
  /**
64
- * Permission to view who has access (view IAM policies)
65
- *
66
50
  * @generated from enum value: can_view_access = 9;
67
51
  */
68
52
  can_view_access = 9,
69
53
  /**
70
54
  * Resource ownership and membership
71
55
  *
72
- * Resource owner
73
- *
74
56
  * @generated from enum value: owner = 10;
75
57
  */
76
58
  owner = 10,
77
59
  /**
78
- * Resource member (for teams, organizations)
79
- *
80
60
  * @generated from enum value: member = 11;
81
61
  */
82
62
  member = 11,
63
+ /**
64
+ * @generated from enum value: viewer = 26;
65
+ */
66
+ viewer = 26,
83
67
  /**
84
68
  * Structural relations (parent links)
85
69
  *
86
- * Link to identity account (user-scoped parent)
87
- *
88
70
  * @generated from enum value: identity_account = 12;
89
71
  */
90
72
  identity_account = 12,
91
73
  /**
92
- * Link to organization (org-scoped parent)
93
- *
94
74
  * @generated from enum value: organization = 13;
95
75
  */
96
76
  organization = 13,
97
77
  /**
98
- * Link to session (agent execution parent)
99
- *
100
78
  * @generated from enum value: session = 14;
101
79
  */
102
80
  session = 14,
103
81
  /**
104
- * Link to agent (agent instance parent)
105
- *
106
82
  * @generated from enum value: agent = 15;
107
83
  */
108
84
  agent = 15,
109
85
  /**
110
86
  * Resource-specific creation permissions
111
87
  *
112
- * Permission to create agents in an organization
113
- *
114
88
  * @generated from enum value: can_create_agent = 16;
115
89
  */
116
90
  can_create_agent = 16,
117
91
  /**
118
- * Permission to create workflows in an organization
119
- *
120
92
  * @generated from enum value: can_create_workflow = 17;
121
93
  */
122
94
  can_create_workflow = 17,
123
95
  /**
124
- * Permission to create sessions in an organization
125
- *
126
96
  * @generated from enum value: can_create_session = 18;
127
97
  */
128
98
  can_create_session = 18,
129
99
  /**
130
- * Permission to create agent executions in a session
131
- *
132
100
  * @generated from enum value: can_create_execution_in = 19;
133
101
  */
134
102
  can_create_execution_in = 19,
135
103
  /**
136
- * Permission to create agent instances (derived from can_execute on parent agent)
137
- *
138
104
  * @generated from enum value: can_create_instance = 20;
139
105
  */
140
106
  can_create_instance = 20,
141
107
  /**
142
- * Permission to create skills in an organization
143
- *
144
108
  * @generated from enum value: can_create_skill = 21;
145
109
  */
146
110
  can_create_skill = 21,
147
111
  /**
148
- * Permission to create projects in an organization
149
- *
150
112
  * @generated from enum value: can_create_project = 23;
151
113
  */
152
114
  can_create_project = 23,
153
115
  /**
154
- * Permission to create identity providers in an organization
155
- *
156
116
  * @generated from enum value: can_create_idp = 24;
157
117
  */
158
118
  can_create_idp = 24,
119
+ /**
120
+ * @generated from enum value: can_create_environment = 27;
121
+ */
122
+ can_create_environment = 27,
159
123
  /**
160
124
  * Resource-specific operation permissions
161
125
  *
162
- * Permission to execute agent/session operations
163
- *
164
126
  * @generated from enum value: can_execute = 22;
165
127
  */
166
128
  can_execute = 22,
167
129
  /**
168
130
  * Secret access permissions
169
131
  *
170
- * Permission to read unredacted secret values (creator-only)
171
- *
172
132
  * @generated from enum value: can_read_secrets = 25;
173
133
  */
174
- can_read_secrets = 25
134
+ can_read_secrets = 25,
135
+ /**
136
+ * Platform-level operational permissions (checked against platform:stigmer)
137
+ *
138
+ * @generated from enum value: can_bootstrap_iam = 29;
139
+ */
140
+ can_bootstrap_iam = 29,
141
+ /**
142
+ * @generated from enum value: can_manage_identity_accounts = 30;
143
+ */
144
+ can_manage_identity_accounts = 30,
145
+ /**
146
+ * @generated from enum value: can_update_execution_status = 31;
147
+ */
148
+ can_update_execution_status = 31
175
149
  }
176
150
  /**
177
151
  * Describes the enum ai.stigmer.iam.iampolicy.v1.rpcauthorization.ApiResourceIamPermission.