@rippling/pebble-sdui-mobile 0.18.0 → 1.0.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.
@@ -108,6 +108,34 @@ on: {
108
108
  }
109
109
  ```
110
110
 
111
+ ## openChatAssistantWithMessage
112
+
113
+ Open Chat Assistant and send an initial message in a new conversation.
114
+
115
+ text: prompt/message that should be sent immediately after Chat Assistant opens.
116
+ target: optional Chat Assistant surface target. Omit to use the default chat surface.
117
+
118
+ Catalog key: `openChatAssistantWithMessage`
119
+ Creator: `openChatAssistantWithMessage`
120
+ Params type: `OpenChatAssistantWithMessageParams`
121
+
122
+ ### Params
123
+
124
+ | Name | Required | Type | Description |
125
+ |---|---:|---|---|
126
+ | `target` | no | [openChatAssistantWithMessageTarget](./definitions.md#openchatassistantwithmessagetarget) | Optional Chat Assistant surface target. |
127
+ | `text` | yes | string | Initial message to send in a new Chat Assistant conversation. Must contain at least one non-whitespace character. |
128
+
129
+ No additional properties.
130
+
131
+ ### Usage Shape
132
+
133
+ ```ts
134
+ on: {
135
+ press: openChatAssistantWithMessage({ ... })
136
+ }
137
+ ```
138
+
111
139
  ## push
112
140
 
113
141
  Push a React Navigation screen onto the current stack by name using the mobile route registered in the navigator.
@@ -165,32 +193,28 @@ on: {
165
193
  }
166
194
  ```
167
195
 
168
- ## triggerApi
196
+ ## triggerFunction
169
197
 
170
- Call a Rippling internal API endpoint and optionally store its response in SDUI state.
198
+ Invoke a Rippling Function by API name.
171
199
 
172
- `url` (required): relative Rippling path beginning with a single "/". Absolute and protocol-relative URLs are rejected.
173
- `method` (optional): "GET" or "POST"; defaults to "POST".
174
- `payload` (optional): query parameters for GET or the JSON body for POST.
175
- `responsePath` (optional): state path where the response body is stored.
176
- `errorPath` (optional): on failure, stores `{ status, message }`; a later success clears it to `null`.
177
- `onSuccess` / `onError` (optional): action lifecycle configuration matching the web SDUI helper.
200
+ `functionApiName` (required): API name of the Function to invoke.
201
+ `inputs` (required): function inputs. Must include an `action` string; additional keys are sent to the Function.
202
+ `responsePath` (optional): state path where the Function response body is stored.
203
+ `onSuccess` / `onError` (optional): action lifecycle configuration.
178
204
 
179
- Catalog key: `triggerApi`
180
- Creator: `triggerApi`
181
- Params type: `TriggerApiParams`
205
+ Catalog key: `triggerFunction`
206
+ Creator: `triggerFunction`
207
+ Params type: `TriggerFunctionParams`
182
208
 
183
209
  ### Params
184
210
 
185
211
  | Name | Required | Type | Description |
186
212
  |---|---:|---|---|
187
- | `errorPath` | no | string | State path where a structured { status, message } error is stored. |
188
- | `method` | no | [triggerApiMethod](./definitions.md#triggerapimethod) | HTTP method. Defaults to POST. |
213
+ | `functionApiName` | yes | string | API name of the Rippling Function to invoke. |
214
+ | `inputs` | yes | [Input](./types.md#input) | Function inputs. Must include an action string. |
189
215
  | `onError` | no | unknown | Action lifecycle configuration run after a failed call. |
190
216
  | `onSuccess` | no | unknown | Action lifecycle configuration run after a successful call. |
191
- | `payload` | no | [Payload](./types.md#payload) | POST body or GET query parameters. Defaults to an empty object for POST. |
192
- | `responsePath` | no | string | State path where the successful response body is stored. |
193
- | `url` | yes | string | Relative Rippling API path. Absolute and protocol-relative URLs are not allowed. |
217
+ | `responsePath` | no | string | State path where the function response body is stored. |
194
218
 
195
219
  No additional properties.
196
220
 
@@ -198,6 +222,6 @@ No additional properties.
198
222
 
199
223
  ```ts
200
224
  on: {
201
- press: triggerApi({ ... })
225
+ press: triggerFunction({ ... })
202
226
  }
203
227
  ```
@@ -3165,6 +3165,28 @@ Referenced by:
3165
3165
  |---|---|---|
3166
3166
  | component | `ObjectItem` | `appearance` |
3167
3167
 
3168
+ ## openChatAssistantWithMessageTarget
3169
+
3170
+ TypeScript type:
3171
+
3172
+ ```ts
3173
+ "sidepane" | "fullscreen" | "copilot"
3174
+ ```
3175
+
3176
+ Allowed values:
3177
+
3178
+ | Value |
3179
+ |---|
3180
+ | `sidepane` |
3181
+ | `fullscreen` |
3182
+ | `copilot` |
3183
+
3184
+ Referenced by:
3185
+
3186
+ | Kind | Entity | Field |
3187
+ |---|---|---|
3188
+ | action | `openChatAssistantWithMessage` | `target` |
3189
+
3168
3190
  ## PageContentPadding
3169
3191
 
3170
3192
  TypeScript type:
@@ -3783,27 +3805,6 @@ Referenced by:
3783
3805
  |---|---|---|
3784
3806
  | component | `Time` | `format` |
3785
3807
 
3786
- ## triggerApiMethod
3787
-
3788
- TypeScript type:
3789
-
3790
- ```ts
3791
- "GET" | "POST"
3792
- ```
3793
-
3794
- Allowed values:
3795
-
3796
- | Value |
3797
- |---|
3798
- | `GET` |
3799
- | `POST` |
3800
-
3801
- Referenced by:
3802
-
3803
- | Kind | Entity | Field |
3804
- |---|---|---|
3805
- | action | `triggerApi` | `method` |
3806
-
3807
3808
  ## WidgetContentShimmerTemplate
3808
3809
 
3809
3810
  TypeScript type:
@@ -2,7 +2,7 @@
2
2
  # custom-apps Catalog
3
3
 
4
4
  Catalog: `custom-apps`
5
- Version: `1.11.0`
5
+ Version: `2.0.0`
6
6
  SDK language: `typescript`
7
7
 
8
8
  Use this catalog index after you have chosen this catalog for the spec. Do not mix components, actions, computed functions, or render helpers from another catalog unless that catalog explicitly documents compatibility.
@@ -782,6 +782,18 @@ Image style overrides — token keys only, e.g. { width: "size400", height: "siz
782
782
 
783
783
  No additional properties.
784
784
 
785
+ ## Input
786
+
787
+ Function inputs. Must include an action string.
788
+
789
+ ### Fields
790
+
791
+ | Name | Required | Type | Description |
792
+ |---|---:|---|---|
793
+ | `action` | yes | string | |
794
+
795
+ Additional properties: unknown.
796
+
785
797
  ## InputTextArg
786
798
 
787
799
  ### Fields
@@ -1118,16 +1130,6 @@ Additional properties: unknown.
1118
1130
 
1119
1131
  No additional properties.
1120
1132
 
1121
- ## Payload
1122
-
1123
- POST body or GET query parameters. Defaults to an empty object for POST.
1124
-
1125
- ### Fields
1126
-
1127
- _No fields._
1128
-
1129
- Additional properties: unknown.
1130
-
1131
1133
  ## PercentageArg
1132
1134
 
1133
1135
  ### Fields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rippling/pebble-sdui-mobile",
3
- "version": "0.18.0",
3
+ "version": "1.0.0",
4
4
  "description": "Type-safe TypeScript mobile SDK for authoring json-render specs",
5
5
  "repository": {
6
6
  "type": "git",