@rudderhq/shared 0.7.2-canary.0 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/computer-use.d.ts +325 -0
  2. package/dist/computer-use.d.ts.map +1 -0
  3. package/dist/computer-use.js +251 -0
  4. package/dist/computer-use.js.map +1 -0
  5. package/dist/computer-use.test.d.ts +2 -0
  6. package/dist/computer-use.test.d.ts.map +1 -0
  7. package/dist/computer-use.test.js +32 -0
  8. package/dist/computer-use.test.js.map +1 -0
  9. package/dist/config-schema.d.ts +7 -7
  10. package/dist/constants.d.ts +46 -128
  11. package/dist/constants.d.ts.map +1 -1
  12. package/dist/constants.js +66 -302
  13. package/dist/constants.js.map +1 -1
  14. package/dist/index.d.ts +12 -7
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +9 -5
  17. package/dist/index.js.map +1 -1
  18. package/dist/project-mentions.d.ts +7 -0
  19. package/dist/project-mentions.d.ts.map +1 -1
  20. package/dist/project-mentions.js +34 -0
  21. package/dist/project-mentions.js.map +1 -1
  22. package/dist/project-mentions.test.js +6 -1
  23. package/dist/project-mentions.test.js.map +1 -1
  24. package/dist/types/app-builder.d.ts +1 -1
  25. package/dist/types/app-builder.d.ts.map +1 -1
  26. package/dist/types/chat.d.ts +5 -1
  27. package/dist/types/chat.d.ts.map +1 -1
  28. package/dist/types/goal.d.ts +267 -1
  29. package/dist/types/goal.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +3 -3
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/instance.d.ts +3 -0
  33. package/dist/types/instance.d.ts.map +1 -1
  34. package/dist/types/issue.d.ts +1 -0
  35. package/dist/types/issue.d.ts.map +1 -1
  36. package/dist/types/mcp.d.ts +7 -2
  37. package/dist/types/mcp.d.ts.map +1 -1
  38. package/dist/types/organization-skill.d.ts +1 -0
  39. package/dist/types/organization-skill.d.ts.map +1 -1
  40. package/dist/types/plugin-v1.d.ts +158 -0
  41. package/dist/types/plugin-v1.d.ts.map +1 -0
  42. package/dist/types/plugin-v1.js +2 -0
  43. package/dist/types/plugin-v1.js.map +1 -0
  44. package/dist/validators/access.d.ts +3 -3
  45. package/dist/validators/adapter-skills.d.ts +12 -12
  46. package/dist/validators/agent-issue-creation.d.ts +29 -0
  47. package/dist/validators/agent-issue-creation.d.ts.map +1 -0
  48. package/dist/validators/agent-issue-creation.js +13 -0
  49. package/dist/validators/agent-issue-creation.js.map +1 -0
  50. package/dist/validators/agent-issue-creation.test.d.ts +2 -0
  51. package/dist/validators/agent-issue-creation.test.d.ts.map +1 -0
  52. package/dist/validators/agent-issue-creation.test.js +64 -0
  53. package/dist/validators/agent-issue-creation.test.js.map +1 -0
  54. package/dist/validators/agent.d.ts +11 -11
  55. package/dist/validators/app-builder.d.ts +15 -15
  56. package/dist/validators/app-builder.d.ts.map +1 -1
  57. package/dist/validators/app-builder.js +13 -3
  58. package/dist/validators/app-builder.js.map +1 -1
  59. package/dist/validators/app-builder.test.js +25 -1
  60. package/dist/validators/app-builder.test.js.map +1 -1
  61. package/dist/validators/approval.d.ts +3 -3
  62. package/dist/validators/budget.d.ts +7 -7
  63. package/dist/validators/calendar.d.ts +11 -11
  64. package/dist/validators/chat.d.ts +18 -18
  65. package/dist/validators/cost.d.ts +4 -4
  66. package/dist/validators/finance.d.ts +13 -13
  67. package/dist/validators/goal.d.ts +1015 -20
  68. package/dist/validators/goal.d.ts.map +1 -1
  69. package/dist/validators/goal.js +182 -5
  70. package/dist/validators/goal.js.map +1 -1
  71. package/dist/validators/index.d.ts +3 -2
  72. package/dist/validators/index.d.ts.map +1 -1
  73. package/dist/validators/index.js +3 -2
  74. package/dist/validators/index.js.map +1 -1
  75. package/dist/validators/instance.d.ts +18 -0
  76. package/dist/validators/instance.d.ts.map +1 -1
  77. package/dist/validators/instance.js +3 -0
  78. package/dist/validators/instance.js.map +1 -1
  79. package/dist/validators/instance.test.js +2 -0
  80. package/dist/validators/instance.test.js.map +1 -1
  81. package/dist/validators/issue.d.ts +15 -2
  82. package/dist/validators/issue.d.ts.map +1 -1
  83. package/dist/validators/issue.js +3 -0
  84. package/dist/validators/issue.js.map +1 -1
  85. package/dist/validators/issue.test.d.ts +2 -0
  86. package/dist/validators/issue.test.d.ts.map +1 -0
  87. package/dist/validators/issue.test.js +15 -0
  88. package/dist/validators/issue.test.js.map +1 -0
  89. package/dist/validators/mcp.d.ts +243 -55
  90. package/dist/validators/mcp.d.ts.map +1 -1
  91. package/dist/validators/mcp.js +57 -4
  92. package/dist/validators/mcp.js.map +1 -1
  93. package/dist/validators/mcp.test.js +78 -58
  94. package/dist/validators/mcp.test.js.map +1 -1
  95. package/dist/validators/organization-intelligence-profile.d.ts +3 -3
  96. package/dist/validators/organization-portability.d.ts +82 -82
  97. package/dist/validators/organization-skill.d.ts +60 -60
  98. package/dist/validators/plugin-v1.d.ts +183 -0
  99. package/dist/validators/plugin-v1.d.ts.map +1 -0
  100. package/dist/validators/plugin-v1.js +47 -0
  101. package/dist/validators/plugin-v1.js.map +1 -0
  102. package/dist/validators/project.d.ts +20 -20
  103. package/dist/validators/resource.d.ts +8 -8
  104. package/dist/validators/secret.d.ts +2 -2
  105. package/dist/validators/work-product.d.ts +8 -8
  106. package/package.json +10 -1
  107. package/dist/types/plugin.d.ts +0 -419
  108. package/dist/types/plugin.d.ts.map +0 -1
  109. package/dist/types/plugin.js +0 -2
  110. package/dist/types/plugin.js.map +0 -1
  111. package/dist/validators/plugin.d.ts +0 -1173
  112. package/dist/validators/plugin.d.ts.map +0 -1
  113. package/dist/validators/plugin.js +0 -547
  114. package/dist/validators/plugin.js.map +0 -1
@@ -19,12 +19,12 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
19
19
  agentId: string;
20
20
  model: string;
21
21
  provider: string;
22
+ occurredAt: string;
22
23
  billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
23
24
  inputTokens: number;
24
25
  cachedInputTokens: number;
25
26
  outputTokens: number;
26
27
  costCents: number;
27
- occurredAt: string;
28
28
  projectId?: string | null | undefined;
29
29
  issueId?: string | null | undefined;
30
30
  goalId?: string | null | undefined;
@@ -35,8 +35,8 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
35
35
  agentId: string;
36
36
  model: string;
37
37
  provider: string;
38
- costCents: number;
39
38
  occurredAt: string;
39
+ costCents: number;
40
40
  projectId?: string | null | undefined;
41
41
  issueId?: string | null | undefined;
42
42
  goalId?: string | null | undefined;
@@ -52,12 +52,12 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
52
52
  agentId: string;
53
53
  model: string;
54
54
  provider: string;
55
+ occurredAt: string;
55
56
  billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
56
57
  inputTokens: number;
57
58
  cachedInputTokens: number;
58
59
  outputTokens: number;
59
60
  costCents: number;
60
- occurredAt: string;
61
61
  projectId?: string | null | undefined;
62
62
  issueId?: string | null | undefined;
63
63
  goalId?: string | null | undefined;
@@ -67,8 +67,8 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
67
67
  agentId: string;
68
68
  model: string;
69
69
  provider: string;
70
- costCents: number;
71
70
  occurredAt: string;
71
+ costCents: number;
72
72
  projectId?: string | null | undefined;
73
73
  issueId?: string | null | undefined;
74
74
  goalId?: string | null | undefined;
@@ -12,7 +12,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
12
12
  direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debit", "credit"]>>>;
13
13
  biller: z.ZodString;
14
14
  provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15
- executionAgentRuntimeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
15
+ executionAgentRuntimeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_gateway", "hermes_local"]>>>;
16
16
  pricingTier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
17
  region: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
18
  model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -25,10 +25,10 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
25
25
  metadataJson: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
26
  occurredAt: z.ZodString;
27
27
  }, "strip", z.ZodTypeAny, {
28
+ direction: "debit" | "credit";
28
29
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
29
- biller: string;
30
30
  occurredAt: string;
31
- direction: "debit" | "credit";
31
+ biller: string;
32
32
  amountCents: number;
33
33
  currency: string;
34
34
  estimated: boolean;
@@ -42,7 +42,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
42
42
  billingCode?: string | null | undefined;
43
43
  heartbeatRunId?: string | null | undefined;
44
44
  costEventId?: string | null | undefined;
45
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
45
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
46
46
  pricingTier?: string | null | undefined;
47
47
  region?: string | null | undefined;
48
48
  quantity?: number | null | undefined;
@@ -51,21 +51,21 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
51
51
  metadataJson?: Record<string, unknown> | null | undefined;
52
52
  }, {
53
53
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
54
- biller: string;
55
54
  occurredAt: string;
55
+ biller: string;
56
56
  amountCents: number;
57
57
  projectId?: string | null | undefined;
58
58
  agentId?: string | null | undefined;
59
59
  issueId?: string | null | undefined;
60
60
  model?: string | null | undefined;
61
+ direction?: "debit" | "credit" | undefined;
61
62
  description?: string | null | undefined;
62
63
  provider?: string | null | undefined;
63
64
  goalId?: string | null | undefined;
64
65
  billingCode?: string | null | undefined;
65
66
  heartbeatRunId?: string | null | undefined;
66
67
  costEventId?: string | null | undefined;
67
- direction?: "debit" | "credit" | undefined;
68
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
68
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
69
69
  pricingTier?: string | null | undefined;
70
70
  region?: string | null | undefined;
71
71
  quantity?: number | null | undefined;
@@ -76,10 +76,10 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
76
76
  metadataJson?: Record<string, unknown> | null | undefined;
77
77
  }>, {
78
78
  currency: string;
79
+ direction: "debit" | "credit";
79
80
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
80
- biller: string;
81
81
  occurredAt: string;
82
- direction: "debit" | "credit";
82
+ biller: string;
83
83
  amountCents: number;
84
84
  estimated: boolean;
85
85
  projectId?: string | null | undefined;
@@ -92,7 +92,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
92
92
  billingCode?: string | null | undefined;
93
93
  heartbeatRunId?: string | null | undefined;
94
94
  costEventId?: string | null | undefined;
95
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
95
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
96
96
  pricingTier?: string | null | undefined;
97
97
  region?: string | null | undefined;
98
98
  quantity?: number | null | undefined;
@@ -101,21 +101,21 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
101
101
  metadataJson?: Record<string, unknown> | null | undefined;
102
102
  }, {
103
103
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
104
- biller: string;
105
104
  occurredAt: string;
105
+ biller: string;
106
106
  amountCents: number;
107
107
  projectId?: string | null | undefined;
108
108
  agentId?: string | null | undefined;
109
109
  issueId?: string | null | undefined;
110
110
  model?: string | null | undefined;
111
+ direction?: "debit" | "credit" | undefined;
111
112
  description?: string | null | undefined;
112
113
  provider?: string | null | undefined;
113
114
  goalId?: string | null | undefined;
114
115
  billingCode?: string | null | undefined;
115
116
  heartbeatRunId?: string | null | undefined;
116
117
  costEventId?: string | null | undefined;
117
- direction?: "debit" | "credit" | undefined;
118
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
118
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
119
119
  pricingTier?: string | null | undefined;
120
120
  region?: string | null | undefined;
121
121
  quantity?: number | null | undefined;