@stigmer/protos 0.3.4 → 0.4.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 (60) hide show
  1. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js +2 -2
  2. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -1
  3. package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +2 -2
  4. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js +1 -1
  5. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
  6. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +38 -0
  7. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +41 -2
  8. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
  9. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +167 -58
  10. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +44 -24
  11. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
  12. package/ai/stigmer/agentic/agentexecution/v1/message_pb.d.ts +0 -10
  13. package/ai/stigmer/agentic/agentexecution/v1/message_pb.js +1 -2
  14. package/ai/stigmer/agentic/agentexecution/v1/message_pb.js.map +1 -1
  15. package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +14 -1
  16. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +15 -2
  17. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
  18. package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +14 -2
  19. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
  20. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
  21. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +701 -262
  22. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +271 -9
  23. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
  24. package/ai/stigmer/billing/v1/billing_account_pb.d.ts +245 -0
  25. package/ai/stigmer/billing/v1/billing_account_pb.js +31 -0
  26. package/ai/stigmer/billing/v1/billing_account_pb.js.map +1 -0
  27. package/ai/stigmer/billing/v1/command_connect.d.ts +135 -0
  28. package/ai/stigmer/billing/v1/command_connect.js +144 -0
  29. package/ai/stigmer/billing/v1/command_connect.js.map +1 -0
  30. package/ai/stigmer/billing/v1/command_pb.d.ts +132 -0
  31. package/ai/stigmer/billing/v1/command_pb.js +23 -0
  32. package/ai/stigmer/billing/v1/command_pb.js.map +1 -0
  33. package/ai/stigmer/billing/v1/credit_pb.d.ts +492 -0
  34. package/ai/stigmer/billing/v1/credit_pb.js +47 -0
  35. package/ai/stigmer/billing/v1/credit_pb.js.map +1 -0
  36. package/ai/stigmer/billing/v1/enum_pb.d.ts +318 -0
  37. package/ai/stigmer/billing/v1/enum_pb.js +329 -0
  38. package/ai/stigmer/billing/v1/enum_pb.js.map +1 -0
  39. package/ai/stigmer/billing/v1/io_pb.d.ts +801 -0
  40. package/ai/stigmer/billing/v1/io_pb.js +130 -0
  41. package/ai/stigmer/billing/v1/io_pb.js.map +1 -0
  42. package/ai/stigmer/billing/v1/policy_pb.d.ts +138 -0
  43. package/ai/stigmer/billing/v1/policy_pb.js +20 -0
  44. package/ai/stigmer/billing/v1/policy_pb.js.map +1 -0
  45. package/ai/stigmer/billing/v1/query_connect.d.ts +68 -0
  46. package/ai/stigmer/billing/v1/query_connect.js +76 -0
  47. package/ai/stigmer/billing/v1/query_connect.js.map +1 -0
  48. package/ai/stigmer/billing/v1/query_pb.d.ts +67 -0
  49. package/ai/stigmer/billing/v1/query_pb.js +20 -0
  50. package/ai/stigmer/billing/v1/query_pb.js.map +1 -0
  51. package/ai/stigmer/iam/identityaccount/v1/command_connect.d.ts +9 -9
  52. package/ai/stigmer/iam/identityaccount/v1/command_connect.js +12 -12
  53. package/ai/stigmer/iam/identityaccount/v1/command_connect.js.map +1 -1
  54. package/ai/stigmer/iam/identityaccount/v1/command_pb.d.ts +11 -11
  55. package/ai/stigmer/iam/identityaccount/v1/command_pb.js +1 -1
  56. package/ai/stigmer/iam/identityaccount/v1/command_pb.js.map +1 -1
  57. package/ai/stigmer/iam/v1/enum_pb.d.ts +18 -1
  58. package/ai/stigmer/iam/v1/enum_pb.js +18 -1
  59. package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
  60. package/package.json +1 -1
@@ -0,0 +1,130 @@
1
+ // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/billing/v1/io.proto (package ai.stigmer.billing.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
+ import { file_ai_stigmer_agentic_agentexecution_v1_usage } from "../../agentic/agentexecution/v1/usage_pb.js";
6
+ import { file_ai_stigmer_billing_v1_credit } from "./credit_pb.js";
7
+ import { file_ai_stigmer_billing_v1_enum } from "./enum_pb.js";
8
+ import { file_ai_stigmer_commons_rpc_pagination } from "../../commons/rpc/pagination_pb.js";
9
+ import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb.js";
10
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
11
+ /**
12
+ * Describes the file ai/stigmer/billing/v1/io.proto.
13
+ */
14
+ export const file_ai_stigmer_billing_v1_io = /*@__PURE__*/ fileDesc("Ch5haS9zdGlnbWVyL2JpbGxpbmcvdjEvaW8ucHJvdG8SFWFpLnN0aWdtZXIuYmlsbGluZy52MSI4Ch5HZXRPckNyZWF0ZUJpbGxpbmdBY2NvdW50SW5wdXQSFgoGb3JnX2lkGAEgASgJQga6SAPIAQEifAoSQWRqdXN0Q3JlZGl0c0lucHV0EhYKBm9yZ19pZBgBIAEoCUIGukgDyAEBEhUKDWFtb3VudF9taWNyb3MYAiABKAMSFgoGcmVhc29uGAMgASgJQga6SAPIAQESHwoPaWRlbXBvdGVuY3lfa2V5GAQgASgJQga6SAPI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IbChNtYXJrdXBfYmFzaXNfcG9pbnRzGAsgASgFYgZwcm90bzM", [file_ai_stigmer_agentic_agentexecution_v1_usage, file_ai_stigmer_billing_v1_credit, file_ai_stigmer_billing_v1_enum, file_ai_stigmer_commons_rpc_pagination, file_buf_validate_validate, file_google_protobuf_timestamp]);
15
+ /**
16
+ * Describes the message ai.stigmer.billing.v1.GetOrCreateBillingAccountInput.
17
+ * Use `create(GetOrCreateBillingAccountInputSchema)` to create a new message.
18
+ */
19
+ export const GetOrCreateBillingAccountInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 0);
20
+ /**
21
+ * Describes the message ai.stigmer.billing.v1.AdjustCreditsInput.
22
+ * Use `create(AdjustCreditsInputSchema)` to create a new message.
23
+ */
24
+ export const AdjustCreditsInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 1);
25
+ /**
26
+ * Describes the message ai.stigmer.billing.v1.AuthorizeExecutionInput.
27
+ * Use `create(AuthorizeExecutionInputSchema)` to create a new message.
28
+ */
29
+ export const AuthorizeExecutionInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 2);
30
+ /**
31
+ * Describes the message ai.stigmer.billing.v1.AuthorizeExecutionResponse.
32
+ * Use `create(AuthorizeExecutionResponseSchema)` to create a new message.
33
+ */
34
+ export const AuthorizeExecutionResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 3);
35
+ /**
36
+ * Describes the message ai.stigmer.billing.v1.RecordLlmCallUsageInput.
37
+ * Use `create(RecordLlmCallUsageInputSchema)` to create a new message.
38
+ */
39
+ export const RecordLlmCallUsageInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 4);
40
+ /**
41
+ * Describes the message ai.stigmer.billing.v1.RecordLlmCallUsageResponse.
42
+ * Use `create(RecordLlmCallUsageResponseSchema)` to create a new message.
43
+ */
44
+ export const RecordLlmCallUsageResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 5);
45
+ /**
46
+ * Describes the message ai.stigmer.billing.v1.FinalizeExecutionInput.
47
+ * Use `create(FinalizeExecutionInputSchema)` to create a new message.
48
+ */
49
+ export const FinalizeExecutionInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 6);
50
+ /**
51
+ * Describes the message ai.stigmer.billing.v1.FinalizeExecutionResponse.
52
+ * Use `create(FinalizeExecutionResponseSchema)` to create a new message.
53
+ */
54
+ export const FinalizeExecutionResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 7);
55
+ /**
56
+ * Describes the message ai.stigmer.billing.v1.CreateCreditCheckoutSessionInput.
57
+ * Use `create(CreateCreditCheckoutSessionInputSchema)` to create a new message.
58
+ */
59
+ export const CreateCreditCheckoutSessionInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 8);
60
+ /**
61
+ * Describes the message ai.stigmer.billing.v1.CreateCreditCheckoutSessionResponse.
62
+ * Use `create(CreateCreditCheckoutSessionResponseSchema)` to create a new message.
63
+ */
64
+ export const CreateCreditCheckoutSessionResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 9);
65
+ /**
66
+ * Describes the message ai.stigmer.billing.v1.CreateBillingPortalSessionInput.
67
+ * Use `create(CreateBillingPortalSessionInputSchema)` to create a new message.
68
+ */
69
+ export const CreateBillingPortalSessionInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 10);
70
+ /**
71
+ * Describes the message ai.stigmer.billing.v1.CreateBillingPortalSessionResponse.
72
+ * Use `create(CreateBillingPortalSessionResponseSchema)` to create a new message.
73
+ */
74
+ export const CreateBillingPortalSessionResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 11);
75
+ /**
76
+ * Describes the message ai.stigmer.billing.v1.SetAutoRechargeConfigInput.
77
+ * Use `create(SetAutoRechargeConfigInputSchema)` to create a new message.
78
+ */
79
+ export const SetAutoRechargeConfigInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 12);
80
+ /**
81
+ * Describes the message ai.stigmer.billing.v1.GetBillingAccountInput.
82
+ * Use `create(GetBillingAccountInputSchema)` to create a new message.
83
+ */
84
+ export const GetBillingAccountInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 13);
85
+ /**
86
+ * Describes the message ai.stigmer.billing.v1.GetCreditBalanceInput.
87
+ * Use `create(GetCreditBalanceInputSchema)` to create a new message.
88
+ */
89
+ export const GetCreditBalanceInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 14);
90
+ /**
91
+ * Describes the message ai.stigmer.billing.v1.GetCreditLedgerInput.
92
+ * Use `create(GetCreditLedgerInputSchema)` to create a new message.
93
+ */
94
+ export const GetCreditLedgerInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 15);
95
+ /**
96
+ * Describes the message ai.stigmer.billing.v1.CreditLedgerResponse.
97
+ * Use `create(CreditLedgerResponseSchema)` to create a new message.
98
+ */
99
+ export const CreditLedgerResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 16);
100
+ /**
101
+ * Describes the message ai.stigmer.billing.v1.GetBillingUsageReportInput.
102
+ * Use `create(GetBillingUsageReportInputSchema)` to create a new message.
103
+ */
104
+ export const GetBillingUsageReportInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 17);
105
+ /**
106
+ * Describes the message ai.stigmer.billing.v1.BillingUsageReportResponse.
107
+ * Use `create(BillingUsageReportResponseSchema)` to create a new message.
108
+ */
109
+ export const BillingUsageReportResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 18);
110
+ /**
111
+ * Describes the message ai.stigmer.billing.v1.ModelBillingBreakdown.
112
+ * Use `create(ModelBillingBreakdownSchema)` to create a new message.
113
+ */
114
+ export const ModelBillingBreakdownSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 19);
115
+ /**
116
+ * Describes the message ai.stigmer.billing.v1.GetCustomerModelPricingInput.
117
+ * Use `create(GetCustomerModelPricingInputSchema)` to create a new message.
118
+ */
119
+ export const GetCustomerModelPricingInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 20);
120
+ /**
121
+ * Describes the message ai.stigmer.billing.v1.CustomerModelPricingResponse.
122
+ * Use `create(CustomerModelPricingResponseSchema)` to create a new message.
123
+ */
124
+ export const CustomerModelPricingResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 21);
125
+ /**
126
+ * Describes the message ai.stigmer.billing.v1.CustomerModelPricingEntry.
127
+ * Use `create(CustomerModelPricingEntrySchema)` to create a new message.
128
+ */
129
+ export const CustomerModelPricingEntrySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_io, 22);
130
+ //# sourceMappingURL=io_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../ai/stigmer/billing/v1/io_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,qGAAqG;AACrG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,+CAA+C,EAAE,MAAM,6CAA6C,CAAC;AAE9G,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAY,aAAa,CACjE,QAAQ,CAAC,qlJAAqlJ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AcjD;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAA6C,aAAa,CACvG,WAAW,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;AAyFjD;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA0C,aAAa,CACjG,WAAW,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC"}
@@ -0,0 +1,138 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file ai/stigmer/billing/v1/policy.proto.
6
+ */
7
+ export declare const file_ai_stigmer_billing_v1_policy: GenFile;
8
+ /**
9
+ * BillingPolicy defines the markup rules for converting provider cost
10
+ * to customer-facing billable amounts.
11
+ *
12
+ * Policies are versioned and immutable once active. To change pricing,
13
+ * create a new policy version — never mutate an active policy.
14
+ * This ensures historical ledger entries always reference the exact
15
+ * policy that was in effect when the charge was computed.
16
+ *
17
+ * Resolution order: model-specific override > org-specific override >
18
+ * harness + cost_tier default policy.
19
+ *
20
+ * @generated from message ai.stigmer.billing.v1.BillingPolicy
21
+ */
22
+ export type BillingPolicy = Message<"ai.stigmer.billing.v1.BillingPolicy"> & {
23
+ /**
24
+ * Unique versioned identifier (e.g., "native-standard-v1").
25
+ *
26
+ * @generated from field: string policy_id = 1;
27
+ */
28
+ policyId: string;
29
+ /**
30
+ * Execution harness this policy applies to ("native" or "cursor").
31
+ *
32
+ * @generated from field: string harness = 2;
33
+ */
34
+ harness: string;
35
+ /**
36
+ * Model cost tier this policy applies to ("economy", "standard", "premium").
37
+ *
38
+ * @generated from field: string cost_tier = 3;
39
+ */
40
+ costTier: string;
41
+ /**
42
+ * Markup expressed as basis points (10000 = 1.0x, no markup).
43
+ * Examples: 13500 = 1.35x, 12500 = 1.25x, 10500 = 1.05x.
44
+ *
45
+ * @generated from field: int32 markup_basis_points = 4;
46
+ */
47
+ markupBasisPoints: number;
48
+ /**
49
+ * Floor charge in micro-USD. Billable amount is at least this value
50
+ * even if the raw markup would produce less.
51
+ *
52
+ * @generated from field: int64 minimum_charge_micros = 5;
53
+ */
54
+ minimumChargeMicros: bigint;
55
+ /**
56
+ * Rounding strategy applied after markup multiplication.
57
+ *
58
+ * @generated from field: string rounding_mode = 6;
59
+ */
60
+ roundingMode: string;
61
+ /**
62
+ * When this policy version became effective.
63
+ *
64
+ * @generated from field: google.protobuf.Timestamp effective_at = 7;
65
+ */
66
+ effectiveAt?: Timestamp;
67
+ /**
68
+ * Whether this policy is currently active for new charges.
69
+ *
70
+ * @generated from field: bool active = 8;
71
+ */
72
+ active: boolean;
73
+ };
74
+ /**
75
+ * Describes the message ai.stigmer.billing.v1.BillingPolicy.
76
+ * Use `create(BillingPolicySchema)` to create a new message.
77
+ */
78
+ export declare const BillingPolicySchema: GenMessage<BillingPolicy>;
79
+ /**
80
+ * BillingUsageRating captures the result of applying a billing policy
81
+ * to a single provider cost event.
82
+ *
83
+ * Attached to every usage_debit ledger entry and usage billing record
84
+ * for full audit trail of how the customer charge was computed.
85
+ *
86
+ * @generated from message ai.stigmer.billing.v1.BillingUsageRating
87
+ */
88
+ export type BillingUsageRating = Message<"ai.stigmer.billing.v1.BillingUsageRating"> & {
89
+ /**
90
+ * Policy that was applied to compute the billable amount.
91
+ *
92
+ * @generated from field: string pricing_policy_id = 1;
93
+ */
94
+ pricingPolicyId: string;
95
+ /**
96
+ * Raw cost that Stigmer pays the LLM provider, in micro-USD.
97
+ *
98
+ * @generated from field: int64 provider_cost_micros = 2;
99
+ */
100
+ providerCostMicros: bigint;
101
+ /**
102
+ * Amount charged to the customer after markup, in micro-USD.
103
+ * Computed as: provider_cost_micros * markup_basis_points / 10000,
104
+ * clamped to minimum_charge_micros, rounded per rounding_mode.
105
+ *
106
+ * @generated from field: int64 billable_amount_micros = 3;
107
+ */
108
+ billableAmountMicros: bigint;
109
+ /**
110
+ * Markup that was applied, in basis points.
111
+ *
112
+ * @generated from field: int32 markup_basis_points = 4;
113
+ */
114
+ markupBasisPoints: number;
115
+ /**
116
+ * Model that incurred the cost.
117
+ *
118
+ * @generated from field: string model = 5;
119
+ */
120
+ model: string;
121
+ /**
122
+ * Execution harness ("native" or "cursor").
123
+ *
124
+ * @generated from field: string harness = 6;
125
+ */
126
+ harness: string;
127
+ /**
128
+ * Model cost tier ("economy", "standard", "premium").
129
+ *
130
+ * @generated from field: string cost_tier = 7;
131
+ */
132
+ costTier: string;
133
+ };
134
+ /**
135
+ * Describes the message ai.stigmer.billing.v1.BillingUsageRating.
136
+ * Use `create(BillingUsageRatingSchema)` to create a new message.
137
+ */
138
+ export declare const BillingUsageRatingSchema: GenMessage<BillingUsageRating>;
@@ -0,0 +1,20 @@
1
+ // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/billing/v1/policy.proto (package ai.stigmer.billing.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
+ /**
7
+ * Describes the file ai/stigmer/billing/v1/policy.proto.
8
+ */
9
+ export const file_ai_stigmer_billing_v1_policy = /*@__PURE__*/ fileDesc("CiJhaS9zdGlnbWVyL2JpbGxpbmcvdjEvcG9saWN5LnByb3RvEhVhaS5zdGlnbWVyLmJpbGxpbmcudjEi2wEKDUJpbGxpbmdQb2xpY3kSEQoJcG9saWN5X2lkGAEgASgJEg8KB2hhcm5lc3MYAiABKAkSEQoJY29zdF90aWVyGAMgASgJEhsKE21hcmt1cF9iYXNpc19wb2ludHMYBCABKAUSHQoVbWluaW11bV9jaGFyZ2VfbWljcm9zGAUgASgDEhUKDXJvdW5kaW5nX21vZGUYBiABKAkSMAoMZWZmZWN0aXZlX2F0GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIOCgZhY3RpdmUYCCABKAgivQEKEkJpbGxpbmdVc2FnZVJhdGluZxIZChFwcmljaW5nX3BvbGljeV9pZBgBIAEoCRIcChRwcm92aWRlcl9jb3N0X21pY3JvcxgCIAEoAxIeChZiaWxsYWJsZV9hbW91bnRfbWljcm9zGAMgASgDEhsKE21hcmt1cF9iYXNpc19wb2ludHMYBCABKAUSDQoFbW9kZWwYBSABKAkSDwoHaGFybmVzcxgGIAEoCRIRCgljb3N0X3RpZXIYByABKAliBnByb3RvMw", [file_google_protobuf_timestamp]);
10
+ /**
11
+ * Describes the message ai.stigmer.billing.v1.BillingPolicy.
12
+ * Use `create(BillingPolicySchema)` to create a new message.
13
+ */
14
+ export const BillingPolicySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_policy, 0);
15
+ /**
16
+ * Describes the message ai.stigmer.billing.v1.BillingUsageRating.
17
+ * Use `create(BillingUsageRatingSchema)` to create a new message.
18
+ */
19
+ export const BillingUsageRatingSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_policy, 1);
20
+ //# sourceMappingURL=policy_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy_pb.js","sourceRoot":"","sources":["../../../../../ai/stigmer/billing/v1/policy_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,yGAAyG;AACzG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAY,aAAa,CACrE,QAAQ,CAAC,ooBAAooB,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC;AA4EnrB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAgEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,iCAAiC,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * BillingQueryController handles read operations for the billing bounded context.
3
+ *
4
+ * All RPCs authorize against the organization resource kind with can_view_billing.
5
+ *
6
+ * @generated from service ai.stigmer.billing.v1.BillingQueryController
7
+ */
8
+ export declare const BillingQueryController: {
9
+ readonly typeName: "ai.stigmer.billing.v1.BillingQueryController";
10
+ readonly methods: {
11
+ /**
12
+ * Retrieve the billing account for an organization.
13
+ *
14
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getBillingAccount
15
+ */
16
+ readonly getBillingAccount: {
17
+ readonly name: "getBillingAccount";
18
+ readonly I: any;
19
+ readonly O: any;
20
+ readonly kind: any;
21
+ };
22
+ /**
23
+ * Retrieve the credit balance breakdown for an organization.
24
+ *
25
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCreditBalance
26
+ */
27
+ readonly getCreditBalance: {
28
+ readonly name: "getCreditBalance";
29
+ readonly I: any;
30
+ readonly O: any;
31
+ readonly kind: any;
32
+ };
33
+ /**
34
+ * Retrieve paginated credit ledger entries with optional filters.
35
+ *
36
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCreditLedger
37
+ */
38
+ readonly getCreditLedger: {
39
+ readonly name: "getCreditLedger";
40
+ readonly I: any;
41
+ readonly O: any;
42
+ readonly kind: any;
43
+ };
44
+ /**
45
+ * Retrieve an aggregated billing usage report for a date range.
46
+ *
47
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getBillingUsageReport
48
+ */
49
+ readonly getBillingUsageReport: {
50
+ readonly name: "getBillingUsageReport";
51
+ readonly I: any;
52
+ readonly O: any;
53
+ readonly kind: any;
54
+ };
55
+ /**
56
+ * Retrieve the customer-facing model price list with markup applied.
57
+ * Returns prices for all models, organized by harness and cost tier.
58
+ *
59
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCustomerModelPricing
60
+ */
61
+ readonly getCustomerModelPricing: {
62
+ readonly name: "getCustomerModelPricing";
63
+ readonly I: any;
64
+ readonly O: any;
65
+ readonly kind: any;
66
+ };
67
+ };
68
+ };
@@ -0,0 +1,76 @@
1
+ // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/billing/v1/query.proto (package ai.stigmer.billing.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { BillingUsageReportResponse, CreditLedgerResponse, CustomerModelPricingResponse, GetBillingAccountInput, GetBillingUsageReportInput, GetCreditBalanceInput, GetCreditLedgerInput, GetCustomerModelPricingInput } from "./io_pbjs";
6
+ import { BillingAccount, CreditBalance } from "./billing_account_pbjs";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+ /**
9
+ * BillingQueryController handles read operations for the billing bounded context.
10
+ *
11
+ * All RPCs authorize against the organization resource kind with can_view_billing.
12
+ *
13
+ * @generated from service ai.stigmer.billing.v1.BillingQueryController
14
+ */
15
+ export const BillingQueryController = {
16
+ typeName: "ai.stigmer.billing.v1.BillingQueryController",
17
+ methods: {
18
+ /**
19
+ * Retrieve the billing account for an organization.
20
+ *
21
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getBillingAccount
22
+ */
23
+ getBillingAccount: {
24
+ name: "getBillingAccount",
25
+ I: GetBillingAccountInput,
26
+ O: BillingAccount,
27
+ kind: MethodKind.Unary,
28
+ },
29
+ /**
30
+ * Retrieve the credit balance breakdown for an organization.
31
+ *
32
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCreditBalance
33
+ */
34
+ getCreditBalance: {
35
+ name: "getCreditBalance",
36
+ I: GetCreditBalanceInput,
37
+ O: CreditBalance,
38
+ kind: MethodKind.Unary,
39
+ },
40
+ /**
41
+ * Retrieve paginated credit ledger entries with optional filters.
42
+ *
43
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCreditLedger
44
+ */
45
+ getCreditLedger: {
46
+ name: "getCreditLedger",
47
+ I: GetCreditLedgerInput,
48
+ O: CreditLedgerResponse,
49
+ kind: MethodKind.Unary,
50
+ },
51
+ /**
52
+ * Retrieve an aggregated billing usage report for a date range.
53
+ *
54
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getBillingUsageReport
55
+ */
56
+ getBillingUsageReport: {
57
+ name: "getBillingUsageReport",
58
+ I: GetBillingUsageReportInput,
59
+ O: BillingUsageReportResponse,
60
+ kind: MethodKind.Unary,
61
+ },
62
+ /**
63
+ * Retrieve the customer-facing model price list with markup applied.
64
+ * Returns prices for all models, organized by harness and cost tier.
65
+ *
66
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCustomerModelPricing
67
+ */
68
+ getCustomerModelPricing: {
69
+ name: "getCustomerModelPricing",
70
+ I: GetCustomerModelPricingInput,
71
+ O: CustomerModelPricingResponse,
72
+ kind: MethodKind.Unary,
73
+ },
74
+ }
75
+ };
76
+ //# sourceMappingURL=query_connect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../ai/stigmer/billing/v1/query_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,wGAAwG;AACxG,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAC1O,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,QAAQ,EAAE,8CAA8C;IACxD,OAAO,EAAE;QACP;;;;WAIG;QACH,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,CAAC,EAAE,sBAAsB;YACzB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,qBAAqB;YACxB,CAAC,EAAE,aAAa;YAChB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,oBAAoB;YACvB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,qBAAqB,EAAE;YACrB,IAAI,EAAE,uBAAuB;YAC7B,CAAC,EAAE,0BAA0B;YAC7B,CAAC,EAAE,0BAA0B;YAC7B,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;WAKG;QACH,uBAAuB,EAAE;YACvB,IAAI,EAAE,yBAAyB;YAC/B,CAAC,EAAE,4BAA4B;YAC/B,CAAC,EAAE,4BAA4B;YAC/B,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -0,0 +1,67 @@
1
+ import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
2
+ import type { BillingAccountSchema, CreditBalanceSchema } from "./billing_account_pb.js";
3
+ import type { BillingUsageReportResponseSchema, CreditLedgerResponseSchema, CustomerModelPricingResponseSchema, GetBillingAccountInputSchema, GetBillingUsageReportInputSchema, GetCreditBalanceInputSchema, GetCreditLedgerInputSchema, GetCustomerModelPricingInputSchema } from "./io_pb.js";
4
+ /**
5
+ * Describes the file ai/stigmer/billing/v1/query.proto.
6
+ */
7
+ export declare const file_ai_stigmer_billing_v1_query: GenFile;
8
+ /**
9
+ * BillingQueryController handles read operations for the billing bounded context.
10
+ *
11
+ * All RPCs authorize against the organization resource kind with can_view_billing.
12
+ *
13
+ * @generated from service ai.stigmer.billing.v1.BillingQueryController
14
+ */
15
+ export declare const BillingQueryController: GenService<{
16
+ /**
17
+ * Retrieve the billing account for an organization.
18
+ *
19
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getBillingAccount
20
+ */
21
+ getBillingAccount: {
22
+ methodKind: "unary";
23
+ input: typeof GetBillingAccountInputSchema;
24
+ output: typeof BillingAccountSchema;
25
+ };
26
+ /**
27
+ * Retrieve the credit balance breakdown for an organization.
28
+ *
29
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCreditBalance
30
+ */
31
+ getCreditBalance: {
32
+ methodKind: "unary";
33
+ input: typeof GetCreditBalanceInputSchema;
34
+ output: typeof CreditBalanceSchema;
35
+ };
36
+ /**
37
+ * Retrieve paginated credit ledger entries with optional filters.
38
+ *
39
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCreditLedger
40
+ */
41
+ getCreditLedger: {
42
+ methodKind: "unary";
43
+ input: typeof GetCreditLedgerInputSchema;
44
+ output: typeof CreditLedgerResponseSchema;
45
+ };
46
+ /**
47
+ * Retrieve an aggregated billing usage report for a date range.
48
+ *
49
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getBillingUsageReport
50
+ */
51
+ getBillingUsageReport: {
52
+ methodKind: "unary";
53
+ input: typeof GetBillingUsageReportInputSchema;
54
+ output: typeof BillingUsageReportResponseSchema;
55
+ };
56
+ /**
57
+ * Retrieve the customer-facing model price list with markup applied.
58
+ * Returns prices for all models, organized by harness and cost tier.
59
+ *
60
+ * @generated from rpc ai.stigmer.billing.v1.BillingQueryController.getCustomerModelPricing
61
+ */
62
+ getCustomerModelPricing: {
63
+ methodKind: "unary";
64
+ input: typeof GetCustomerModelPricingInputSchema;
65
+ output: typeof CustomerModelPricingResponseSchema;
66
+ };
67
+ }>;
@@ -0,0 +1,20 @@
1
+ // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/billing/v1/query.proto (package ai.stigmer.billing.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
5
+ import { file_ai_stigmer_billing_v1_billing_account } from "./billing_account_pb.js";
6
+ import { file_ai_stigmer_billing_v1_io } from "./io_pb.js";
7
+ import { file_ai_stigmer_commons_rpc_method_options } from "../../commons/rpc/method_options_pb.js";
8
+ /**
9
+ * Describes the file ai/stigmer/billing/v1/query.proto.
10
+ */
11
+ export const file_ai_stigmer_billing_v1_query = /*@__PURE__*/ fileDesc("CiFhaS9zdGlnbWVyL2JpbGxpbmcvdjEvcXVlcnkucHJvdG8SFWFpLnN0aWdtZXIuYmlsbGluZy52MTK/BwoWQmlsbGluZ1F1ZXJ5Q29udHJvbGxlchKvAQoRZ2V0QmlsbGluZ0FjY291bnQSLS5haS5zdGlnbWVyLmJpbGxpbmcudjEuR2V0QmlsbGluZ0FjY291bnRJbnB1dBolLmFpLnN0aWdtZXIuYmlsbGluZy52MS5CaWxsaW5nQWNjb3VudCJEwrgYQAgbEB4iBm9yZ19pZCoydW5hdXRob3JpemVkIHRvIHZpZXcgYmlsbGluZyBmb3IgdGhpcyBvcmdhbml6YXRpb24SrAEKEGdldENyZWRpdEJhbGFuY2USLC5haS5zdGlnbWVyLmJpbGxpbmcudjEuR2V0Q3JlZGl0QmFsYW5jZUlucHV0GiQuYWkuc3RpZ21lci5iaWxsaW5nLnYxLkNyZWRpdEJhbGFuY2UiRMK4GEAIGxAeIgZvcmdfaWQqMnVuYXV0aG9yaXplZCB0byB2aWV3IGJpbGxpbmcgZm9yIHRoaXMgb3JnYW5pemF0aW9uErEBCg9nZXRDcmVkaXRMZWRnZXISKy5haS5zdGlnbWVyLmJpbGxpbmcudjEuR2V0Q3JlZGl0TGVkZ2VySW5wdXQaKy5haS5zdGlnbWVyLmJpbGxpbmcudjEuQ3JlZGl0TGVkZ2VyUmVzcG9uc2UiRMK4GEAIGxAeIgZvcmdfaWQqMnVuYXV0aG9yaXplZCB0byB2aWV3IGJpbGxpbmcgZm9yIHRoaXMgb3JnYW5pemF0aW9uEsMBChVnZXRCaWxsaW5nVXNhZ2VSZXBvcnQSMS5haS5zdGlnbWVyLmJpbGxpbmcudjEuR2V0QmlsbGluZ1VzYWdlUmVwb3J0SW5wdXQaMS5haS5zdGlnbWVyLmJpbGxpbmcudjEuQmlsbGluZ1VzYWdlUmVwb3J0UmVzcG9uc2UiRMK4GEAIGxAeIgZvcmdfaWQqMnVuYXV0aG9yaXplZCB0byB2aWV3IGJpbGxpbmcgZm9yIHRoaXMgb3JnYW5pemF0aW9uEskBChdnZXRDdXN0b21lck1vZGVsUHJpY2luZxIzLmFpLnN0aWdtZXIuYmlsbGluZy52MS5HZXRDdXN0b21lck1vZGVsUHJpY2luZ0lucHV0GjMuYWkuc3RpZ21lci5iaWxsaW5nLnYxLkN1c3RvbWVyTW9kZWxQcmljaW5nUmVzcG9uc2UiRMK4GEAIGxAeIgZvcmdfaWQqMnVuYXV0aG9yaXplZCB0byB2aWV3IGJpbGxpbmcgZm9yIHRoaXMgb3JnYW5pemF0aW9uYgZwcm90bzM", [file_ai_stigmer_billing_v1_billing_account, file_ai_stigmer_billing_v1_io, file_ai_stigmer_commons_rpc_method_options]);
12
+ /**
13
+ * BillingQueryController handles read operations for the billing bounded context.
14
+ *
15
+ * All RPCs authorize against the organization resource kind with can_view_billing.
16
+ *
17
+ * @generated from service ai.stigmer.billing.v1.BillingQueryController
18
+ */
19
+ export const BillingQueryController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_billing_v1_query, 0);
20
+ //# sourceMappingURL=query_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../ai/stigmer/billing/v1/query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,wGAAwG;AACxG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,0CAA0C,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC;AAEpG;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAY,aAAa,CACpE,QAAQ,CAAC,61CAA61C,EAAE,CAAC,0CAA0C,EAAE,6BAA6B,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEn+C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAoD9B,aAAa,CAChB,WAAW,CAAC,gCAAgC,EAAE,CAAC,CAAC,CAAC"}
@@ -10,7 +10,7 @@ export declare const IdentityAccountCommandController: {
10
10
  * Create a new identity account.
11
11
  *
12
12
  * @internal
13
- * System-level RPC used by Auth0 webhook flow and federated account creation.
13
+ * System-level RPC used by federated account creation and bootstrap migrations.
14
14
  * No FGA authorization — called via inProcessChannelAsSystem (machine account).
15
15
  * The handler's createAuthorizationTuples step writes the self-ownership tuple after creation.
16
16
  *
@@ -111,17 +111,17 @@ export declare const IdentityAccountCommandController: {
111
111
  readonly kind: any;
112
112
  };
113
113
  /**
114
- * Trigger account provisioning for a user who exists in Auth0 but not in Stigmer.
114
+ * Provision the caller's own identity account.
115
115
  *
116
- * @internal
117
- * Takes the email, looks it up on Auth0, and if a user exists, posts a webhook
118
- * to Stigmer with the Auth0 payload format to trigger account provisioning.
119
- * Authorization is skipped this is a system-level operation.
116
+ * Called by the console when whoAmI() returns NOT_FOUND (first login after signup).
117
+ * Derives all identity information from the caller's JWT and the OIDC /userinfo
118
+ * endpoint. Creates the IdentityAccount and a personal Organization owned by the
119
+ * caller. Idempotent: returns the existing account on retry.
120
120
  *
121
- * @generated from rpc ai.stigmer.iam.identityaccount.v1.IdentityAccountCommandController.simulateSignupWebhook
121
+ * @generated from rpc ai.stigmer.iam.identityaccount.v1.IdentityAccountCommandController.provisionMyAccount
122
122
  */
123
- readonly simulateSignupWebhook: {
124
- readonly name: "simulateSignupWebhook";
123
+ readonly provisionMyAccount: {
124
+ readonly name: "provisionMyAccount";
125
125
  readonly I: any;
126
126
  readonly O: any;
127
127
  readonly kind: any;
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { IdentityAccount } from "./api_pbjs";
6
6
  import { Empty, MethodKind } from "@bufbuild/protobuf";
7
- import { CreateFederatedAccountInput, DeprovisionFederatedAccountInput, IdentityAccountEmail, IdentityAccountId, UpdateFederatedAccountInput } from "./io_pbjs";
7
+ import { CreateFederatedAccountInput, DeprovisionFederatedAccountInput, IdentityAccountId, UpdateFederatedAccountInput } from "./io_pbjs";
8
8
  /**
9
9
  * IdentityAccountCommandController handles write operations for identity accounts.
10
10
  *
@@ -17,7 +17,7 @@ export const IdentityAccountCommandController = {
17
17
  * Create a new identity account.
18
18
  *
19
19
  * @internal
20
- * System-level RPC used by Auth0 webhook flow and federated account creation.
20
+ * System-level RPC used by federated account creation and bootstrap migrations.
21
21
  * No FGA authorization — called via inProcessChannelAsSystem (machine account).
22
22
  * The handler's createAuthorizationTuples step writes the self-ownership tuple after creation.
23
23
  *
@@ -118,19 +118,19 @@ export const IdentityAccountCommandController = {
118
118
  kind: MethodKind.Unary,
119
119
  },
120
120
  /**
121
- * Trigger account provisioning for a user who exists in Auth0 but not in Stigmer.
121
+ * Provision the caller's own identity account.
122
122
  *
123
- * @internal
124
- * Takes the email, looks it up on Auth0, and if a user exists, posts a webhook
125
- * to Stigmer with the Auth0 payload format to trigger account provisioning.
126
- * Authorization is skipped this is a system-level operation.
123
+ * Called by the console when whoAmI() returns NOT_FOUND (first login after signup).
124
+ * Derives all identity information from the caller's JWT and the OIDC /userinfo
125
+ * endpoint. Creates the IdentityAccount and a personal Organization owned by the
126
+ * caller. Idempotent: returns the existing account on retry.
127
127
  *
128
- * @generated from rpc ai.stigmer.iam.identityaccount.v1.IdentityAccountCommandController.simulateSignupWebhook
128
+ * @generated from rpc ai.stigmer.iam.identityaccount.v1.IdentityAccountCommandController.provisionMyAccount
129
129
  */
130
- simulateSignupWebhook: {
131
- name: "simulateSignupWebhook",
132
- I: IdentityAccountEmail,
133
- O: Empty,
130
+ provisionMyAccount: {
131
+ name: "provisionMyAccount",
132
+ I: Empty,
133
+ O: IdentityAccount,
134
134
  kind: MethodKind.Unary,
135
135
  },
136
136
  }
@@ -1 +1 @@
1
- {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/identityaccount/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,kIAAkI;AAClI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAEhK;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,oEAAoE;IAC9E,OAAO,EAAE;QACP;;;;;;;;;WASG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,eAAe;YAClB,CAAC,EAAE,eAAe;YAClB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,eAAe;YAClB,CAAC,EAAE,eAAe;YAClB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,iBAAiB;YACpB,CAAC,EAAE,eAAe;YAClB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,sBAAsB,EAAE;YACtB,IAAI,EAAE,wBAAwB;YAC9B,CAAC,EAAE,2BAA2B;YAC9B,CAAC,EAAE,eAAe;YAClB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;WAYG;QACH,sBAAsB,EAAE;YACtB,IAAI,EAAE,wBAAwB;YAC9B,CAAC,EAAE,2BAA2B;YAC9B,CAAC,EAAE,eAAe;YAClB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;WAaG;QACH,2BAA2B,EAAE;YAC3B,IAAI,EAAE,6BAA6B;YACnC,CAAC,EAAE,gCAAgC;YACnC,CAAC,EAAE,eAAe;YAClB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;WASG;QACH,qBAAqB,EAAE;YACrB,IAAI,EAAE,uBAAuB;YAC7B,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/identityaccount/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,kIAAkI;AAClI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAE1I;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,oEAAoE;IAC9E,OAAO,EAAE;QACP;;;;;;;;;WASG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,eAAe;YAClB,CAAC,EAAE,eAAe;YAClB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EA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