rocketride 1.0.5 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/account.js +284 -0
  3. package/dist/cjs/account.js.map +1 -0
  4. package/dist/cjs/billing.js +171 -0
  5. package/dist/cjs/billing.js.map +1 -0
  6. package/dist/cjs/client.js +1208 -756
  7. package/dist/cjs/client.js.map +1 -1
  8. package/dist/cjs/constants.js +10 -1
  9. package/dist/cjs/constants.js.map +1 -1
  10. package/dist/cjs/core/DAPBase.js +4 -1
  11. package/dist/cjs/core/DAPBase.js.map +1 -1
  12. package/dist/cjs/core/DAPClient.js +121 -50
  13. package/dist/cjs/core/DAPClient.js.map +1 -1
  14. package/dist/cjs/core/TransportBase.js +0 -10
  15. package/dist/cjs/core/TransportBase.js.map +1 -1
  16. package/dist/cjs/core/TransportWebSocket.js +30 -19
  17. package/dist/cjs/core/TransportWebSocket.js.map +1 -1
  18. package/dist/cjs/database.js +121 -0
  19. package/dist/cjs/database.js.map +1 -0
  20. package/dist/cjs/index.js +4 -0
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/cjs/schema/Question.js +2 -0
  23. package/dist/cjs/schema/Question.js.map +1 -1
  24. package/dist/cjs/types/account.js +26 -0
  25. package/dist/cjs/types/account.js.map +1 -0
  26. package/dist/cjs/types/billing.js +26 -0
  27. package/dist/cjs/types/billing.js.map +1 -0
  28. package/dist/cjs/types/client.js +14 -0
  29. package/dist/cjs/types/client.js.map +1 -1
  30. package/dist/cjs/types/cprofile.js +26 -0
  31. package/dist/cjs/types/cprofile.js.map +1 -0
  32. package/dist/cjs/types/dashboard.js +26 -0
  33. package/dist/cjs/types/dashboard.js.map +1 -0
  34. package/dist/cjs/types/events.js +5 -1
  35. package/dist/cjs/types/events.js.map +1 -1
  36. package/dist/cjs/types/index.js +5 -0
  37. package/dist/cjs/types/index.js.map +1 -1
  38. package/dist/cjs/types/service.js +85 -0
  39. package/dist/cjs/types/service.js.map +1 -0
  40. package/dist/cli/cli/rocketride.js +335 -113
  41. package/dist/cli/cli/rocketride.js.map +1 -1
  42. package/dist/cli/client/account.js +284 -0
  43. package/dist/cli/client/account.js.map +1 -0
  44. package/dist/cli/client/billing.js +171 -0
  45. package/dist/cli/client/billing.js.map +1 -0
  46. package/dist/cli/client/client.js +1208 -756
  47. package/dist/cli/client/client.js.map +1 -1
  48. package/dist/cli/client/constants.js +10 -1
  49. package/dist/cli/client/constants.js.map +1 -1
  50. package/dist/cli/client/core/DAPBase.js +4 -1
  51. package/dist/cli/client/core/DAPBase.js.map +1 -1
  52. package/dist/cli/client/core/DAPClient.js +121 -50
  53. package/dist/cli/client/core/DAPClient.js.map +1 -1
  54. package/dist/cli/client/core/TransportBase.js +0 -10
  55. package/dist/cli/client/core/TransportBase.js.map +1 -1
  56. package/dist/cli/client/core/TransportWebSocket.js +30 -19
  57. package/dist/cli/client/core/TransportWebSocket.js.map +1 -1
  58. package/dist/cli/client/database.js +121 -0
  59. package/dist/cli/client/database.js.map +1 -0
  60. package/dist/cli/client/index.js +4 -0
  61. package/dist/cli/client/index.js.map +1 -1
  62. package/dist/cli/client/schema/Question.js +2 -0
  63. package/dist/cli/client/schema/Question.js.map +1 -1
  64. package/dist/cli/client/types/account.js +26 -0
  65. package/dist/cli/client/types/account.js.map +1 -0
  66. package/dist/cli/client/types/billing.js +26 -0
  67. package/dist/cli/client/types/billing.js.map +1 -0
  68. package/dist/cli/client/types/client.js +14 -0
  69. package/dist/cli/client/types/client.js.map +1 -1
  70. package/dist/cli/client/types/cprofile.js +26 -0
  71. package/dist/cli/client/types/cprofile.js.map +1 -0
  72. package/dist/cli/client/types/dashboard.js +26 -0
  73. package/dist/cli/client/types/dashboard.js.map +1 -0
  74. package/dist/cli/client/types/events.js +5 -1
  75. package/dist/cli/client/types/events.js.map +1 -1
  76. package/dist/cli/client/types/index.js +5 -0
  77. package/dist/cli/client/types/index.js.map +1 -1
  78. package/dist/cli/client/types/service.js +85 -0
  79. package/dist/cli/client/types/service.js.map +1 -0
  80. package/dist/esm/account.js +280 -0
  81. package/dist/esm/account.js.map +1 -0
  82. package/dist/esm/billing.js +167 -0
  83. package/dist/esm/billing.js.map +1 -0
  84. package/dist/esm/client.js +1208 -756
  85. package/dist/esm/client.js.map +1 -1
  86. package/dist/esm/constants.js +9 -0
  87. package/dist/esm/constants.js.map +1 -1
  88. package/dist/esm/core/DAPBase.js +4 -1
  89. package/dist/esm/core/DAPBase.js.map +1 -1
  90. package/dist/esm/core/DAPClient.js +121 -50
  91. package/dist/esm/core/DAPClient.js.map +1 -1
  92. package/dist/esm/core/TransportBase.js +0 -10
  93. package/dist/esm/core/TransportBase.js.map +1 -1
  94. package/dist/esm/core/TransportWebSocket.js +30 -19
  95. package/dist/esm/core/TransportWebSocket.js.map +1 -1
  96. package/dist/esm/database.js +117 -0
  97. package/dist/esm/database.js.map +1 -0
  98. package/dist/esm/index.js +4 -0
  99. package/dist/esm/index.js.map +1 -1
  100. package/dist/esm/schema/Question.js +2 -0
  101. package/dist/esm/schema/Question.js.map +1 -1
  102. package/dist/esm/types/account.js +25 -0
  103. package/dist/esm/types/account.js.map +1 -0
  104. package/dist/esm/types/billing.js +25 -0
  105. package/dist/esm/types/billing.js.map +1 -0
  106. package/dist/esm/types/client.js +13 -1
  107. package/dist/esm/types/client.js.map +1 -1
  108. package/dist/esm/types/cprofile.js +25 -0
  109. package/dist/esm/types/cprofile.js.map +1 -0
  110. package/dist/esm/types/dashboard.js +25 -0
  111. package/dist/esm/types/dashboard.js.map +1 -0
  112. package/dist/esm/types/events.js +5 -1
  113. package/dist/esm/types/events.js.map +1 -1
  114. package/dist/esm/types/index.js +5 -0
  115. package/dist/esm/types/index.js.map +1 -1
  116. package/dist/esm/types/service.js +82 -0
  117. package/dist/esm/types/service.js.map +1 -0
  118. package/dist/types/account.d.ts +209 -0
  119. package/dist/types/account.d.ts.map +1 -0
  120. package/dist/types/billing.d.ts +135 -0
  121. package/dist/types/billing.d.ts.map +1 -0
  122. package/dist/types/client.d.ts +553 -285
  123. package/dist/types/client.d.ts.map +1 -1
  124. package/dist/types/constants.d.ts +9 -0
  125. package/dist/types/constants.d.ts.map +1 -1
  126. package/dist/types/core/DAPBase.d.ts.map +1 -1
  127. package/dist/types/core/DAPClient.d.ts +89 -7
  128. package/dist/types/core/DAPClient.d.ts.map +1 -1
  129. package/dist/types/core/TransportBase.d.ts +1 -11
  130. package/dist/types/core/TransportBase.d.ts.map +1 -1
  131. package/dist/types/core/TransportWebSocket.d.ts +14 -11
  132. package/dist/types/core/TransportWebSocket.d.ts.map +1 -1
  133. package/dist/types/database.d.ts +90 -0
  134. package/dist/types/database.d.ts.map +1 -0
  135. package/dist/types/index.d.ts +2 -0
  136. package/dist/types/index.d.ts.map +1 -1
  137. package/dist/types/schema/Question.d.ts +3 -1
  138. package/dist/types/schema/Question.d.ts.map +1 -1
  139. package/dist/types/types/account.d.ts +171 -0
  140. package/dist/types/types/account.d.ts.map +1 -0
  141. package/dist/types/types/billing.d.ts +115 -0
  142. package/dist/types/types/billing.d.ts.map +1 -0
  143. package/dist/types/types/client.d.ts +241 -1
  144. package/dist/types/types/client.d.ts.map +1 -1
  145. package/dist/types/types/cprofile.d.ts +67 -0
  146. package/dist/types/types/cprofile.d.ts.map +1 -0
  147. package/dist/types/types/dashboard.d.ts +198 -0
  148. package/dist/types/types/dashboard.d.ts.map +1 -0
  149. package/dist/types/types/events.d.ts +90 -95
  150. package/dist/types/types/events.d.ts.map +1 -1
  151. package/dist/types/types/index.d.ts +5 -0
  152. package/dist/types/types/index.d.ts.map +1 -1
  153. package/dist/types/types/pipeline.d.ts +10 -2
  154. package/dist/types/types/pipeline.d.ts.map +1 -1
  155. package/dist/types/types/service.d.ts +189 -0
  156. package/dist/types/types/service.d.ts.map +1 -0
  157. package/dist/types/types/task.d.ts +5 -1
  158. package/dist/types/types/task.d.ts.map +1 -1
  159. package/package.json +12 -7
@@ -0,0 +1,171 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 Aparavi Software AG
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ /**
25
+ * Account type definitions for the RocketRide TypeScript SDK.
26
+ *
27
+ * Data shapes for user profiles, API keys, organizations, teams, and members.
28
+ * These mirror the server's DAP response shapes without importing any
29
+ * platform-specific modules.
30
+ */
31
+ /** A single API key record returned from the server. */
32
+ export interface ApiKeyRecord {
33
+ /** Unique identifier for the key. */
34
+ id: string;
35
+ /** Human-readable label given to the key at creation time. */
36
+ name: string;
37
+ /** Team this key is scoped to, or null for all teams. */
38
+ teamId: string | null;
39
+ /** Display name of the scoped team, or null. */
40
+ teamName: string | null;
41
+ /** Array of permission strings granted to this key. */
42
+ permissions: string[];
43
+ /** ISO timestamp of when the key was created, or null. */
44
+ createdAt: string | null;
45
+ /** ISO timestamp of when the key expires, or null for no expiry. */
46
+ expiresAt: string | null;
47
+ /** ISO timestamp of when the key was last used, or null if never used. */
48
+ lastUsedAt: string | null;
49
+ /** ISO timestamp of when the key was revoked, or null if still active. */
50
+ revokedAt: string | null;
51
+ /** Whether the key is currently active (not expired and not revoked). */
52
+ active: boolean;
53
+ /** Whether this is an auto-managed session key for reconnect persistence. */
54
+ isSession: boolean;
55
+ }
56
+ /** Summary information about the current user's organization. */
57
+ export interface OrgDetail {
58
+ /** Unique identifier for the organization. */
59
+ id: string;
60
+ /** Display name of the organization. */
61
+ name: string;
62
+ /** The billing / feature plan the organization is on. */
63
+ plan: string;
64
+ /** Total number of members in the organization. */
65
+ memberCount: number;
66
+ /** Total number of teams within the organization. */
67
+ teamCount: number;
68
+ }
69
+ /** A single organization member record returned from the server. */
70
+ export interface MemberRecord {
71
+ /** Unique identifier of the user. */
72
+ userId: string;
73
+ /** The user's display name. */
74
+ displayName: string;
75
+ /** The user's email address. */
76
+ email: string;
77
+ /** The user's organization-level role (e.g. "admin" or "member"). */
78
+ role: string;
79
+ /** Membership status (e.g. "active" or "pending"). */
80
+ status: string;
81
+ }
82
+ /** Summary of a team, used in the teams list view. */
83
+ export interface TeamRecord {
84
+ /** Unique identifier for the team. */
85
+ id: string;
86
+ /** Display name of the team. */
87
+ name: string;
88
+ /** Optional brand color as a CSS hex string, or null to use the generated avatar color. */
89
+ color: string | null;
90
+ /** Number of members currently in the team. */
91
+ memberCount: number;
92
+ }
93
+ /** Full detail for a single team including its member list. */
94
+ export interface TeamDetail {
95
+ /** Unique identifier for the team. */
96
+ id: string;
97
+ /** Display name of the team. */
98
+ name: string;
99
+ /** Optional brand color as a CSS hex string, or null to use the generated avatar color. */
100
+ color: string | null;
101
+ /** Full list of members belonging to this team. */
102
+ members: TeamMemberRecord[];
103
+ }
104
+ /** A member record scoped to a specific team, including that team's permissions. */
105
+ export interface TeamMemberRecord {
106
+ /** Unique identifier of the user. */
107
+ userId: string;
108
+ /** The user's display name. */
109
+ displayName: string;
110
+ /** The user's email address. */
111
+ email: string;
112
+ /** Array of permission strings this user holds within the team. */
113
+ permissions: string[];
114
+ }
115
+ /**
116
+ * Union type for the five navigable sections within AccountView.
117
+ * Controls which tab panel is active and which data is fetched.
118
+ */
119
+ export type AccountSection = 'profile' | 'billing' | 'api-keys' | 'organization' | 'teams' | 'members';
120
+ /**
121
+ * The set of mutable profile fields submitted when saving profile edits.
122
+ * All fields are strings; an empty string means no change.
123
+ */
124
+ export interface ProfileUpdate {
125
+ /** Display name (nickname). */
126
+ displayName: string;
127
+ /** Preferred login / username. */
128
+ preferredUsername: string;
129
+ /** First / given name. */
130
+ givenName: string;
131
+ /** Last / family name. */
132
+ familyName: string;
133
+ /** Primary email address. */
134
+ email: string;
135
+ /** Phone number in E.164 format. */
136
+ phoneNumber: string;
137
+ /** Locale / language preference. */
138
+ locale: string;
139
+ }
140
+ /** Parameters for creating a new API key. */
141
+ export interface CreateKeyParams {
142
+ /** Human-readable label for the key. */
143
+ name: string;
144
+ /** Array of permission strings to grant to this key. Empty for full PAT. */
145
+ permissions: string[];
146
+ /** Optional ISO timestamp for key expiration. Omit for no expiry. */
147
+ expiresAt?: string;
148
+ /** Optional team UUID to scope this key to. Omit for all teams. */
149
+ teamId?: string;
150
+ }
151
+ /** Parameters for inviting a new member to an organization. */
152
+ export interface InviteMemberParams {
153
+ /** Email address of the person to invite. */
154
+ email: string;
155
+ /** First / given name of the invitee. */
156
+ givenName: string;
157
+ /** Last / family name of the invitee. */
158
+ familyName: string;
159
+ /** Organization-level role to assign (e.g. "admin" or "member"). */
160
+ role: string;
161
+ }
162
+ /** Parameters for adding or updating a team member. */
163
+ export interface TeamMemberParams {
164
+ /** The team to add the member to or update within. */
165
+ teamId: string;
166
+ /** The user ID of the member. */
167
+ userId: string;
168
+ /** Permissions to grant within the team. */
169
+ permissions: string[];
170
+ }
171
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["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CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC/B,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IAEb,4EAA4E;IAC5E,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IAClC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IAEd,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAElB,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IAEnB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;CACb;AAED,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAChC,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IAEf,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;IAEf,4CAA4C;IAC5C,WAAW,EAAE,MAAM,EAAE,CAAC;CACtB"}
@@ -0,0 +1,115 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 Aparavi Software AG
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ /**
25
+ * Billing type definitions for the RocketRide TypeScript SDK.
26
+ *
27
+ * Data shapes for subscription management, compute credits, and Stripe
28
+ * integration. These mirror the server's DAP response shapes without
29
+ * importing any platform-specific modules.
30
+ */
31
+ /**
32
+ * Per-app subscription detail row returned by the `rrext_account_billing`
33
+ * `list` subcommand. One row per subscribed app.
34
+ */
35
+ export interface BillingDetail {
36
+ /** App identifier matching AppManifestEntry.id (e.g. "brandi"). */
37
+ appId: string;
38
+ /** Stripe sub_* subscription identifier. */
39
+ stripeSubscriptionId: string;
40
+ /** Stripe price_* for the subscribed plan. */
41
+ stripePriceId: string;
42
+ /** One of: active, trialing, past_due, canceled. */
43
+ status: string;
44
+ /** Human-readable plan name from Stripe price nickname (e.g. "Pro Monthly"), or null. */
45
+ planNickname: string | null;
46
+ /** Price in USD cents for the subscribed plan, or null. */
47
+ unitAmount: number | null;
48
+ /** Billing interval: "month" or "year", or null. */
49
+ billingInterval: string | null;
50
+ /** ISO 8601 datetime when the current billing period started, or null. */
51
+ currentPeriodStart: string | null;
52
+ /** ISO 8601 datetime when the current billing period ends, or null. */
53
+ currentPeriodEnd: string | null;
54
+ /** True when the user has requested cancellation at period end. */
55
+ cancelAtPeriodEnd: boolean;
56
+ /** Credit grants config from Stripe price metadata, or null. */
57
+ credits: {
58
+ initial?: Record<string, number>;
59
+ recurring?: Record<string, number>;
60
+ } | null;
61
+ /** Display templates for credit resource types (e.g. ``{amount} minutes of Audio``), or null. */
62
+ creditLabels: Record<string, string> | null;
63
+ }
64
+ /**
65
+ * Stripe plan/price row for a given product, returned by the `prices`
66
+ * subcommand. Used in the checkout plan picker.
67
+ */
68
+ export interface StripePlan {
69
+ /** Stripe price_* identifier. */
70
+ priceId: string;
71
+ /** Billing interval: "month" or "year". */
72
+ interval: 'month' | 'year';
73
+ /** Price in USD cents. */
74
+ unitAmount: number;
75
+ /** Human-readable nickname, e.g. "Pro Monthly". */
76
+ nickname: string;
77
+ }
78
+ /**
79
+ * Multi-resource credit balance for an organisation's wallet.
80
+ * Returned by the `credits_balance` subcommand.
81
+ *
82
+ * Each field is a dict keyed by resource type (e.g. ``{ tokens: 4200, video: 80 }``).
83
+ */
84
+ export interface CreditBalance {
85
+ /** Current unspent balances per resource type. */
86
+ balances: Record<string, number>;
87
+ /** Total purchased per resource type — useful for ledger display. */
88
+ lifetimePurchased: Record<string, number>;
89
+ /** Total consumed per resource type — useful for ledger display. */
90
+ lifetimeConsumed: Record<string, number>;
91
+ /**
92
+ * Human-readable display templates per resource type, from Stripe price metadata.
93
+ * Supports ``{amount}`` substitution (e.g. ``"{amount} minutes of Audio"``).
94
+ * Falls back to the raw resource key when a label is not configured.
95
+ */
96
+ labels: Record<string, string>;
97
+ }
98
+ /**
99
+ * Per-pack pricing row for the credit top-up modal.
100
+ * Mirrors the output of the Terraform `credit_packs` map so operators
101
+ * can add/edit packs without a frontend deploy.
102
+ */
103
+ export interface CreditPack {
104
+ /** Terraform key ("small", "medium", "large"). */
105
+ packId: string;
106
+ /** Stripe price_* identifier for the one-off pack. */
107
+ priceId: string;
108
+ /** Cost of the pack in USD cents. */
109
+ usdCents: number;
110
+ /** Credits added to the wallet on successful purchase. */
111
+ credits: number;
112
+ /** Human-readable label, e.g. "55k credits (10% bonus)". */
113
+ nickname: string;
114
+ }
115
+ //# sourceMappingURL=billing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../../src/client/types/billing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;GAMG;AAMH;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,mEAAmE;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C;IAE1C,oEAAoE;IACpE,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEzC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IAC1B,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAEhB,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IAEjB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAEhB,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;CACjB"}
@@ -27,8 +27,13 @@
27
27
  * This module defines the core types used for client-server communication
28
28
  * including DAP messages, callbacks, configuration options, and transport interfaces.
29
29
  */
30
+ import { ConnectionException } from '../exceptions/index.js';
30
31
  /**
31
32
  * Stack trace information for errors.
33
+ *
34
+ * Carries source-location metadata returned by the server when a server-side
35
+ * error includes a traceback, enabling developers to pinpoint the failure
36
+ * inside pipeline node code.
32
37
  */
33
38
  export interface TraceInfo {
34
39
  /** File path where the error occurred */
@@ -36,6 +41,16 @@ export interface TraceInfo {
36
41
  /** Line number where the error occurred */
37
42
  lineno: number;
38
43
  }
44
+ /**
45
+ * A single DAP (Debug Adapter Protocol) message exchanged between the client
46
+ * and the RocketRide server.
47
+ *
48
+ * All communication on the WebSocket uses this envelope. The `type` field
49
+ * discriminates between the three roles a message can play:
50
+ * - `request` — client → server command invocation
51
+ * - `response` — server → client result for a prior request
52
+ * - `event` — server → client unsolicited notification
53
+ */
39
54
  export interface DAPMessage {
40
55
  /** Message type: request from client, response from server, or event notification */
41
56
  type: 'request' | 'response' | 'event';
@@ -98,17 +113,29 @@ export interface ConnectionInfo {
98
113
  export type EventCallback = (event: DAPMessage) => Promise<void>;
99
114
  /**
100
115
  * Callback function for connection establishment events.
116
+ *
117
+ * Invoked once the WebSocket is open AND the server has confirmed the
118
+ * authentication handshake. `connectionInfo` is an optional human-readable
119
+ * string describing the remote endpoint.
101
120
  */
102
121
  export type ConnectCallback = (connectionInfo?: string) => Promise<void>;
103
122
  /**
104
123
  * Callback function for disconnection events.
124
+ *
125
+ * Invoked whenever the connection closes, whether gracefully or due to an
126
+ * error. `reason` is a human-readable description and `hasError` is true
127
+ * when the closure was caused by an error rather than a clean shutdown.
105
128
  */
106
129
  export type DisconnectCallback = (reason?: string, hasError?: boolean) => Promise<void>;
107
130
  /**
108
131
  * Callback when a connection attempt fails (e.g. auth or pipeline not ready).
109
132
  * Used in persist mode to inform the UI while the client keeps retrying.
133
+ *
134
+ * The callback receives a `ConnectionException` (rather than a generic Error)
135
+ * so the caller can inspect structured error details such as status codes
136
+ * returned by the server.
110
137
  */
111
- export type ConnectErrorCallback = (message: string) => Promise<void>;
138
+ export type ConnectErrorCallback = (error: ConnectionException) => void | Promise<void>;
112
139
  /**
113
140
  * Configuration options for creating an RocketRideClient instance.
114
141
  *
@@ -137,13 +164,226 @@ export interface RocketRideClientConfig {
137
164
  onProtocolMessage?: (message: string) => void;
138
165
  /** Optional function to output a debug message */
139
166
  onDebugMessage?: (message: string) => void;
167
+ /**
168
+ * Open a public (unauthenticated) connection.
169
+ * Only ``rrext_public_*`` commands may be sent. The connection is
170
+ * permanently public — call connect() on a separate client to authenticate.
171
+ */
172
+ public?: boolean;
140
173
  /** Maintain the connection */
141
174
  persist?: boolean;
142
175
  /** Default timeout in ms for individual requests. Default: no timeout. */
143
176
  requestTimeout?: number;
144
177
  /** Max total time in ms to keep retrying connections. Default: undefined (forever). */
145
178
  maxRetryTime?: number;
179
+ /** Custom WebSocket path override (default: '/task/service'). Use '/models' for the model server. */
180
+ wsPath?: string;
146
181
  /** Client module name for debugging and identification */
147
182
  module?: string;
183
+ /** Friendly client name sent during auth (e.g. "VS Code", "Cursor") */
184
+ clientName?: string;
185
+ /** Client version sent during auth (e.g. "0.9.4") */
186
+ clientVersion?: string;
187
+ /**
188
+ * Optional trace callback invoked at the start and end of every `call()`.
189
+ * Use for logging, debugging, or telemetry.
190
+ *
191
+ * @param traceType - 0 = request (before send), 1 = success (response), 2 = error
192
+ * @param payload - The trace data: command, args, and (for success/error) the result or error message.
193
+ */
194
+ onTrace?: (traceType: TraceType, message: DAPMessage) => void;
195
+ }
196
+ /** Discriminator for the three trace event types. */
197
+ export declare enum TraceType {
198
+ /** Emitted before the DAP request is sent. */
199
+ Request = 0,
200
+ /** Emitted when the DAP request succeeds. */
201
+ Success = 1,
202
+ /** Emitted when the DAP request fails. */
203
+ Error = 2
204
+ }
205
+ /**
206
+ * Describes a team within an organisation that the authenticated user belongs to.
207
+ *
208
+ * Teams are the finest-grained unit of access control. Each team carries a set
209
+ * of permission strings that govern which server operations are available to
210
+ * members of that team.
211
+ */
212
+ export interface TeamInfo {
213
+ /** Unique identifier of the team (UUID or short slug) */
214
+ id: string;
215
+ /** Display name of the team shown in dashboards and logs */
216
+ name: string;
217
+ /**
218
+ * Permission strings granted to this team.
219
+ * Examples: `'task.execute'`, `'task.monitor'`, `'store.read'`.
220
+ */
221
+ permissions: string[];
222
+ }
223
+ /**
224
+ * Describes an organisation the authenticated user is a member of.
225
+ *
226
+ * Organisations group users and teams for billing and access management.
227
+ * A user may belong to multiple organisations; each carries its own permission
228
+ * set at the organisation level plus a list of contained teams.
229
+ */
230
+ export interface OrgInfo {
231
+ /** Unique identifier of the organisation (UUID or short slug) */
232
+ id: string;
233
+ /** Display name of the organisation */
234
+ name: string;
235
+ /**
236
+ * Organisation-level permission strings granted to the authenticated user.
237
+ * These apply across all teams within the organisation.
238
+ */
239
+ permissions: string[];
240
+ /**
241
+ * Teams within this organisation that the user is a member of.
242
+ * Each entry includes team-scoped permissions.
243
+ */
244
+ teams: TeamInfo[];
245
+ }
246
+ /**
247
+ * Full identity and authorisation payload returned by the server after a
248
+ * successful authentication handshake (`auth` command).
249
+ *
250
+ * The client caches this object and re-emits it whenever the server pushes
251
+ * an `apaext_account` event (e.g. after a plan change). The `userToken`
252
+ * field is used for subsequent reconnects in persist mode.
253
+ */
254
+ export interface ConnectResult {
255
+ /**
256
+ * Short-lived RocketRide session token (`rr_…`) that can be replayed on
257
+ * reconnect without requiring the original API key or PKCE exchange again.
258
+ */
259
+ userToken: string;
260
+ /** Unique identifier of the authenticated user (UUID) */
261
+ userId: string;
262
+ /** Full display name of the user (e.g. "Jane Smith") */
263
+ displayName: string;
264
+ /** User's given (first) name */
265
+ givenName: string;
266
+ /** User's family (last) name */
267
+ familyName: string;
268
+ /** Username / login handle (not necessarily unique across providers) */
269
+ preferredUsername: string;
270
+ /** Primary email address of the user */
271
+ email: string;
272
+ /** Whether the email address has been verified by the identity provider */
273
+ emailVerified: boolean;
274
+ /** Primary phone number of the user (E.164 format where available) */
275
+ phoneNumber: string;
276
+ /** Whether the phone number has been verified by the identity provider */
277
+ phoneNumberVerified: boolean;
278
+ /** BCP-47 locale tag (e.g. "en-US") representing the user's preferred locale */
279
+ locale: string;
280
+ /**
281
+ * ID of the team that should be used by default for operations that do not
282
+ * explicitly specify a team context.
283
+ */
284
+ defaultTeam: string;
285
+ /**
286
+ * List of organisations the authenticated user belongs to, each with
287
+ * its own permission set and nested team memberships.
288
+ */
289
+ organizations: OrgInfo[];
290
+ /**
291
+ * Apps on the user's desktop with ``appStatus`` and ``onDesktop``.
292
+ * OSS: all apps with ``appStatus: "free"``, ``onDesktop: true``.
293
+ * SaaS: populated from the ``app_users`` table, enriched with billing info.
294
+ */
295
+ apps: AppManifestEntry[];
296
+ /**
297
+ * Server capability tags describing the account provider in use.
298
+ * OSS servers report `['oss']`; SaaS servers report `['saas']`.
299
+ */
300
+ capabilities: string[];
301
+ }
302
+ /**
303
+ * A single app entry in the server-provided manifest.
304
+ *
305
+ * Same shape as the build-time apps.json entries, extended with
306
+ * optional pricing and visibility metadata for SaaS deployments.
307
+ */
308
+ export interface AppManifestEntry {
309
+ /** Unique app identifier (e.g. "rocketride.pipeBuilder"). */
310
+ id: string;
311
+ /** Module Federation remote name (e.g. "rocketride_pipeBuilder"). */
312
+ moduleId: string;
313
+ /** Human-readable app name. */
314
+ name: string;
315
+ /** Short description of the app. */
316
+ description?: string;
317
+ /** URL path to the app's icon (e.g. "/shell/apps/rocket-ui/icon.svg"). */
318
+ icon?: string;
319
+ /** Category tags for filtering (e.g. ["pipelines", "ai"]). */
320
+ categories?: string[];
321
+ /** App-specific setting definitions. */
322
+ settings?: unknown[];
323
+ /** URL to the app's Module Federation remote entry file. */
324
+ entry: string;
325
+ /** App version string (semver). */
326
+ version?: string;
327
+ /** Visibility scope: "public", "org", "team", or "user". */
328
+ ownerType?: string;
329
+ /** Whether the app UI requires authentication to render. Default true. */
330
+ authenticated?: boolean;
331
+ /** Whether to show the header bar when this app is active. Default true. */
332
+ showHeader?: boolean;
333
+ /** Whether to show the status bar when this app is active. Default true. */
334
+ showStatusBar?: boolean;
335
+ /** Whether the app is visible to unauthenticated users. Default true. */
336
+ public?: boolean;
337
+ /** Stripe product ID (SaaS paid apps only). */
338
+ stripeProductId?: string;
339
+ /** Available pricing tiers (SaaS paid apps only). */
340
+ stripePrices?: StripePriceEntry[];
341
+ /** App lifecycle status: 'auth' | 'free' | 'unsubscribed' | 'subscribed' | 'trialing' | 'past_due' | 'canceled'. */
342
+ appStatus?: string;
343
+ /** Whether this app is on the user's desktop. */
344
+ onDesktop?: boolean;
345
+ /** Total seats on the subscription (only for subscribed paid apps). */
346
+ seats?: number;
347
+ /** Seats currently occupied in this org (only for subscribed paid apps). */
348
+ seatsUsed?: number;
349
+ /** Feature flags enabled by the subscribed plan (only for subscribed paid apps). */
350
+ features?: string[];
351
+ }
352
+ /**
353
+ * A Stripe pricing tier for a paid app.
354
+ */
355
+ export interface StripePriceEntry {
356
+ /** Stripe price ID (price_*). */
357
+ priceId: string;
358
+ /** Human-readable label (e.g. "Monthly"). */
359
+ nickname: string;
360
+ /** Price in smallest currency unit (cents). */
361
+ amountCents: number;
362
+ /** ISO 4217 currency code (e.g. "usd"). */
363
+ currency: string;
364
+ /** Billing interval: "month", "year", or "one_time". */
365
+ interval: string;
366
+ }
367
+ /**
368
+ * Server metadata returned by the pre-auth info probe.
369
+ *
370
+ * Obtained via {@link RocketRideClient.getServerInfo} which sends an
371
+ * `auth` request with `infoOnly: true`. The server responds without
372
+ * requiring credentials.
373
+ */
374
+ export interface ServerInfoResult {
375
+ /** Server engine version string. */
376
+ version: string;
377
+ /** Capability tags: `['oss']` for open-source, `['saas']` for cloud. */
378
+ capabilities: string[];
379
+ /** Server platform (e.g. `'linux'`, `'win32'`, `'darwin'`). */
380
+ platform?: string;
381
+ /**
382
+ * Public apps visible without authentication.
383
+ *
384
+ * Returned by the pre-auth probe so the shell can render
385
+ * public apps (e.g. landing page) before login.
386
+ */
387
+ apps?: AppManifestEntry[];
148
388
  }
149
389
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client/types/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IAEb,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IAC1B,qFAAqF;IACrF,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAEvC,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAC;IAEZ,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEpC,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,8BAA8B;IAC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E,gBAAgB,EAAE,CAAC;CAC1B"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 Aparavi Software AG
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ /**
25
+ * Type definitions for cProfile process profiling DAP commands.
26
+ *
27
+ * These types correspond to the responses from rrext_cprofile_* commands
28
+ * returned by CProfileManager on the server.
29
+ */
30
+ /** Response from rrext_cprofile_status and rrext_cprofile_start. */
31
+ export interface CProfileStatusResponse {
32
+ /** Whether profiling is currently active. */
33
+ active?: boolean;
34
+ /** 'started' or 'error' (from start command). */
35
+ status?: string;
36
+ /** Connection that owns the active session. */
37
+ owner: string | null;
38
+ /** Human-readable session name. */
39
+ session: string | null;
40
+ /** Current runtime in seconds (if active). */
41
+ runtime: number | null;
42
+ /** Unix timestamp when profiling started (from start command). */
43
+ start_time?: number;
44
+ /** Whether a completed report is available (if inactive). */
45
+ has_report?: boolean;
46
+ /** Error message (if status is 'error'). */
47
+ message?: string;
48
+ }
49
+ /** Response from rrext_cprofile_stop. */
50
+ export interface CProfileStopResponse {
51
+ /** 'completed' or 'error'. */
52
+ status: string;
53
+ /** Session name that was stopped. */
54
+ session?: string;
55
+ /** Total profiling duration in seconds. */
56
+ runtime?: number;
57
+ /** Error message (if status is 'error'). */
58
+ message?: string;
59
+ /** Owner info (on ownership mismatch error). */
60
+ owner?: string;
61
+ }
62
+ /** Response from rrext_cprofile_report. */
63
+ export interface CProfileReportResponse {
64
+ /** Full pstats-formatted text report. */
65
+ report: string;
66
+ }
67
+ //# sourceMappingURL=cprofile.d.ts.map