@proveanything/smartlinks 2.1.17 → 2.1.19

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 (80) hide show
  1. package/dist/adminViews.d.ts +104 -0
  2. package/dist/adminViews.js +275 -0
  3. package/dist/api/ai.d.ts +15 -5
  4. package/dist/api/ai.js +15 -9
  5. package/dist/api/aiGuide.d.ts +108 -0
  6. package/dist/api/aiGuide.js +161 -0
  7. package/dist/api/appObjects.d.ts +21 -0
  8. package/dist/api/appObjects.js +33 -1
  9. package/dist/api/authKit.d.ts +37 -1
  10. package/dist/api/authKit.js +51 -0
  11. package/dist/api/index.d.ts +2 -0
  12. package/dist/api/index.js +2 -0
  13. package/dist/api/operations.d.ts +36 -0
  14. package/dist/api/operations.js +56 -0
  15. package/dist/api/order.d.ts +12 -1
  16. package/dist/api/order.js +15 -0
  17. package/dist/api/userGroups.d.ts +78 -0
  18. package/dist/api/userGroups.js +124 -0
  19. package/dist/docs/API_SUMMARY.md +1111 -80
  20. package/dist/docs/admin-lists-and-pickers.md +140 -0
  21. package/dist/docs/admin-views.md +147 -0
  22. package/dist/docs/app-data-storage.md +277 -276
  23. package/dist/docs/app-manifest.md +2 -0
  24. package/dist/docs/auth-kit.md +872 -741
  25. package/dist/docs/comms.md +686 -644
  26. package/dist/docs/customer-guide.md +70 -0
  27. package/dist/docs/headless-providers.md +112 -112
  28. package/dist/docs/operations.md +281 -0
  29. package/dist/docs/overview.md +3 -0
  30. package/dist/docs/server-functions.md +87 -1
  31. package/dist/docs/ui-utils.md +123 -121
  32. package/dist/docs/user-groups.md +175 -0
  33. package/dist/docs/utils.md +17 -0
  34. package/dist/headless.js +38 -2
  35. package/dist/http.js +8 -0
  36. package/dist/iframeResponder.d.ts +15 -0
  37. package/dist/iframeResponder.js +39 -1
  38. package/dist/index.d.ts +3 -1
  39. package/dist/index.js +2 -0
  40. package/dist/live.d.ts +80 -0
  41. package/dist/live.js +315 -0
  42. package/dist/openapi.yaml +1864 -48
  43. package/dist/testing/index.d.ts +35 -0
  44. package/dist/testing/index.js +86 -0
  45. package/dist/types/appManifest.d.ts +297 -1
  46. package/dist/types/appOptions.d.ts +32 -0
  47. package/dist/types/appOptions.js +3 -0
  48. package/dist/types/authKit.d.ts +193 -4
  49. package/dist/types/comms.d.ts +41 -2
  50. package/dist/types/containers.d.ts +8 -0
  51. package/dist/types/headless.d.ts +49 -1
  52. package/dist/types/iframeResponder.d.ts +16 -1
  53. package/dist/types/index.d.ts +3 -0
  54. package/dist/types/index.js +3 -0
  55. package/dist/types/operations.d.ts +598 -0
  56. package/dist/types/operations.js +8 -0
  57. package/dist/types/order.d.ts +35 -6
  58. package/dist/types/userGroups.d.ts +103 -0
  59. package/dist/types/userGroups.js +5 -0
  60. package/dist/utils/conditions.d.ts +7 -0
  61. package/dist/utils/conditions.js +16 -9
  62. package/docs/API_SUMMARY.md +1111 -80
  63. package/docs/admin-lists-and-pickers.md +140 -0
  64. package/docs/admin-views.md +147 -0
  65. package/docs/app-data-storage.md +277 -276
  66. package/docs/app-manifest.md +2 -0
  67. package/docs/auth-kit.md +872 -741
  68. package/docs/comms.md +686 -644
  69. package/docs/customer-guide.md +70 -0
  70. package/docs/headless-providers.md +112 -112
  71. package/docs/operations.md +281 -0
  72. package/docs/overview.md +3 -0
  73. package/docs/server-functions.md +87 -1
  74. package/docs/ui-utils.md +123 -121
  75. package/docs/user-groups.md +175 -0
  76. package/docs/utils.md +17 -0
  77. package/openapi.yaml +1864 -48
  78. package/package.json +1 -1
  79. package/scripts/doctor.mjs +454 -428
  80. package/scripts/lib/keyed-app-data.mjs +21 -0
package/dist/openapi.yaml CHANGED
@@ -124,6 +124,8 @@ tags:
124
124
  description: Message and document templates.
125
125
  - name: translations
126
126
  description: Localization and translation lookup.
127
+ - name: userGroups
128
+ description: userGroups API
127
129
  - name: variant
128
130
  description: Product variant management.
129
131
  security:
@@ -2018,6 +2020,66 @@ paths:
2018
2020
  application/json:
2019
2021
  schema:
2020
2022
  $ref: "#/components/schemas/AuthKitConfigInput"
2023
+ /admin/collection/{collectionId}/authKit/schema:
2024
+ get:
2025
+ tags:
2026
+ - authKit
2027
+ summary: "Every sign-in setting: its path, default, what reads it (`screens` / `server` / `both`), in plain words."
2028
+ operationId: authKit_schema
2029
+ security:
2030
+ - bearerAuth: []
2031
+ parameters:
2032
+ - name: collectionId
2033
+ in: path
2034
+ required: true
2035
+ schema:
2036
+ type: string
2037
+ responses:
2038
+ 200:
2039
+ description: Success
2040
+ content:
2041
+ application/json:
2042
+ schema:
2043
+ $ref: "#/components/schemas/AuthKitSchema"
2044
+ 400:
2045
+ description: Bad request
2046
+ 401:
2047
+ description: Unauthorized
2048
+ 404:
2049
+ description: Not found
2050
+ /admin/collection/{collectionId}/authKit/setup:
2051
+ post:
2052
+ tags:
2053
+ - authKit
2054
+ summary: "Set up the collection's sign-in in one call, safe to repeat: finds its sign-in (or makes one, with email + Google and confirm-then-signed-in, and makes it the collection's default), optionally gives it its own logins (ONE WAY — members of this site only; needed for invite-only) and saves a first settings patch."
2055
+ operationId: authKit_setup
2056
+ security:
2057
+ - bearerAuth: []
2058
+ parameters:
2059
+ - name: collectionId
2060
+ in: path
2061
+ required: true
2062
+ schema:
2063
+ type: string
2064
+ responses:
2065
+ 200:
2066
+ description: Success
2067
+ content:
2068
+ application/json:
2069
+ schema:
2070
+ $ref: "#/components/schemas/AuthKitSetupResponse"
2071
+ 400:
2072
+ description: Bad request
2073
+ 401:
2074
+ description: Unauthorized
2075
+ 404:
2076
+ description: Not found
2077
+ requestBody:
2078
+ required: true
2079
+ content:
2080
+ application/json:
2081
+ schema:
2082
+ $ref: "#/components/schemas/AuthKitSetupRequest"
2021
2083
  /admin/collection/{collectionId}/authKit/{authKitId}:
2022
2084
  get:
2023
2085
  tags:
@@ -2119,6 +2181,49 @@ paths:
2119
2181
  description: Unauthorized
2120
2182
  404:
2121
2183
  description: Not found
2184
+ /admin/collection/{collectionId}/authKit/{authKitId}/emails/{kind}/preview:
2185
+ post:
2186
+ tags:
2187
+ - authKit
2188
+ summary: "An account email as it would be sent now — or with draft settings (`emailTemplates`, `emailBranding`, `branding`; checked like a save, nothing stored)."
2189
+ operationId: authKit_previewEmail
2190
+ security:
2191
+ - bearerAuth: []
2192
+ parameters:
2193
+ - name: collectionId
2194
+ in: path
2195
+ required: true
2196
+ schema:
2197
+ type: string
2198
+ - name: authKitId
2199
+ in: path
2200
+ required: true
2201
+ schema:
2202
+ type: string
2203
+ - name: kind
2204
+ in: path
2205
+ required: true
2206
+ schema:
2207
+ type: string
2208
+ responses:
2209
+ 200:
2210
+ description: Success
2211
+ content:
2212
+ application/json:
2213
+ schema:
2214
+ $ref: "#/components/schemas/AuthKitEmailPreview"
2215
+ 400:
2216
+ description: Bad request
2217
+ 401:
2218
+ description: Unauthorized
2219
+ 404:
2220
+ description: Not found
2221
+ requestBody:
2222
+ required: true
2223
+ content:
2224
+ application/json:
2225
+ schema:
2226
+ $ref: "#/components/schemas/AuthKitConfigInput"
2122
2227
  /admin/collection/{collectionId}/authKit/{authKitId}/identity:
2123
2228
  post:
2124
2229
  tags:
@@ -2196,6 +2301,82 @@ paths:
2196
2301
  application/json:
2197
2302
  schema:
2198
2303
  $ref: "#/components/schemas/AuthKitInviteRequest"
2304
+ /admin/collection/{collectionId}/authKit/{authKitId}/secrets/{name}/link:
2305
+ post:
2306
+ tags:
2307
+ - authKit
2308
+ summary: A one-time SmartLinks page where the PERSON types a secret (e.g.
2309
+ operationId: authKit_secretEntryLink
2310
+ security:
2311
+ - bearerAuth: []
2312
+ parameters:
2313
+ - name: collectionId
2314
+ in: path
2315
+ required: true
2316
+ schema:
2317
+ type: string
2318
+ - name: authKitId
2319
+ in: path
2320
+ required: true
2321
+ schema:
2322
+ type: string
2323
+ - name: name
2324
+ in: path
2325
+ required: true
2326
+ schema:
2327
+ type: string
2328
+ responses:
2329
+ 200:
2330
+ description: Success
2331
+ content:
2332
+ application/json:
2333
+ schema:
2334
+ $ref: "#/components/schemas/AuthKitSecretLink"
2335
+ 400:
2336
+ description: Bad request
2337
+ 401:
2338
+ description: Unauthorized
2339
+ 404:
2340
+ description: Not found
2341
+ requestBody:
2342
+ required: true
2343
+ content:
2344
+ application/json:
2345
+ schema:
2346
+ type: object
2347
+ additionalProperties: true
2348
+ /admin/collection/{collectionId}/authKit/{authKitId}/settings:
2349
+ get:
2350
+ tags:
2351
+ - authKit
2352
+ summary: "What sign-in does now: the stored config, every default filled in, which secrets are set (masked), and checks."
2353
+ operationId: authKit_settings
2354
+ security:
2355
+ - bearerAuth: []
2356
+ parameters:
2357
+ - name: collectionId
2358
+ in: path
2359
+ required: true
2360
+ schema:
2361
+ type: string
2362
+ - name: authKitId
2363
+ in: path
2364
+ required: true
2365
+ schema:
2366
+ type: string
2367
+ responses:
2368
+ 200:
2369
+ description: Success
2370
+ content:
2371
+ application/json:
2372
+ schema:
2373
+ $ref: "#/components/schemas/AuthKitSettingsResponse"
2374
+ 400:
2375
+ description: Bad request
2376
+ 401:
2377
+ description: Unauthorized
2378
+ 404:
2379
+ description: Not found
2199
2380
  /admin/collection/{collectionId}/batch:
2200
2381
  get:
2201
2382
  tags:
@@ -6143,6 +6324,16 @@ paths:
6143
6324
  required: false
6144
6325
  schema:
6145
6326
  type: string
6327
+ - name: direction
6328
+ in: query
6329
+ required: false
6330
+ schema:
6331
+ $ref: "#/components/schemas/OrderDirection"
6332
+ - name: partyId
6333
+ in: query
6334
+ required: false
6335
+ schema:
6336
+ type: string
6146
6337
  - name: includeItems
6147
6338
  in: query
6148
6339
  required: false
@@ -6263,7 +6454,7 @@ paths:
6263
6454
  post:
6264
6455
  tags:
6265
6456
  - order
6266
- summary: order.getAnalytics
6457
+ summary: Get comprehensive scan analytics for all tags in an order.
6267
6458
  operationId: order_getAnalytics
6268
6459
  security:
6269
6460
  - bearerAuth: []
@@ -6845,6 +7036,43 @@ paths:
6845
7036
  application/json:
6846
7037
  schema:
6847
7038
  $ref: "#/components/schemas/AddItemsRequest"
7039
+ /admin/collection/{collectionId}/orders/{orderId}/items/{itemId}/done:
7040
+ post:
7041
+ tags:
7042
+ - order
7043
+ summary: Add to (or take from) how much of a line has been shipped or received.
7044
+ operationId: order_lineDone
7045
+ security:
7046
+ - bearerAuth: []
7047
+ parameters:
7048
+ - name: collectionId
7049
+ in: path
7050
+ required: true
7051
+ schema:
7052
+ type: string
7053
+ - name: orderId
7054
+ in: path
7055
+ required: true
7056
+ schema:
7057
+ type: string
7058
+ - name: itemId
7059
+ in: path
7060
+ required: true
7061
+ schema:
7062
+ type: string
7063
+ responses:
7064
+ 200:
7065
+ description: Success
7066
+ content:
7067
+ application/json:
7068
+ schema:
7069
+ $ref: "#/components/schemas/OrderItem"
7070
+ 400:
7071
+ description: Bad request
7072
+ 401:
7073
+ description: Unauthorized
7074
+ 404:
7075
+ description: Not found
6848
7076
  /admin/collection/{collectionId}/owner/{userId}:
6849
7077
  get:
6850
7078
  tags:
@@ -9537,7 +9765,7 @@ paths:
9537
9765
  post:
9538
9766
  tags:
9539
9767
  - authKit
9540
- summary: Sign in with LinkedIn (OpenID Connect) via a server-side authorization code (public).
9768
+ summary: authKit.linkedInLogin
9541
9769
  operationId: authKit_linkedInLogin
9542
9770
  security: []
9543
9771
  parameters:
@@ -11293,38 +11521,6 @@ paths:
11293
11521
  schema:
11294
11522
  type: object
11295
11523
  additionalProperties: true
11296
- /public/collection/{collectionId}/ai/token:
11297
- post:
11298
- tags:
11299
- - sessions
11300
- summary: Generate ephemeral token for Gemini Live
11301
- operationId: sessions_getToken
11302
- security: []
11303
- parameters:
11304
- - name: collectionId
11305
- in: path
11306
- required: true
11307
- schema:
11308
- type: string
11309
- responses:
11310
- 200:
11311
- description: Success
11312
- content:
11313
- application/json:
11314
- schema:
11315
- $ref: "#/components/schemas/EphemeralTokenResponse"
11316
- 400:
11317
- description: Bad request
11318
- 401:
11319
- description: Unauthorized
11320
- 404:
11321
- description: Not found
11322
- requestBody:
11323
- required: true
11324
- content:
11325
- application/json:
11326
- schema:
11327
- $ref: "#/components/schemas/EphemeralTokenRequest"
11328
11524
  /public/collection/{collectionId}/app/config:
11329
11525
  get:
11330
11526
  tags:
@@ -14348,6 +14544,32 @@ paths:
14348
14544
  application/json:
14349
14545
  schema:
14350
14546
  $ref: "#/components/schemas/TranslationLookupRequest"
14547
+ /public/collection/{collectionId}/userGroups/mine:
14548
+ get:
14549
+ tags:
14550
+ - userGroups
14551
+ summary: "The signed-in person's own user groups in this collection."
14552
+ operationId: userGroups_mine
14553
+ security: []
14554
+ parameters:
14555
+ - name: collectionId
14556
+ in: path
14557
+ required: true
14558
+ schema:
14559
+ type: string
14560
+ responses:
14561
+ 200:
14562
+ description: Success
14563
+ content:
14564
+ application/json:
14565
+ schema:
14566
+ $ref: "#/components/schemas/MyUserGroups"
14567
+ 400:
14568
+ description: Bad request
14569
+ 401:
14570
+ description: Unauthorized
14571
+ 404:
14572
+ description: Not found
14351
14573
  /public/config/fields:
14352
14574
  get:
14353
14575
  tags:
@@ -20684,6 +20906,10 @@ components:
20684
20906
  $ref: "#/components/schemas/AppFunctionAuthority"
20685
20907
  elevated:
20686
20908
  type: boolean
20909
+ userGroups:
20910
+ type: array
20911
+ items:
20912
+ type: string
20687
20913
  capabilities:
20688
20914
  type: array
20689
20915
  items:
@@ -20907,14 +21133,66 @@ components:
20907
21133
  type: string
20908
21134
  limit:
20909
21135
  type: number
21136
+ ServerFunctionMessage:
21137
+ type: object
21138
+ properties:
21139
+ contactId:
21140
+ type: string
21141
+ to:
21142
+ type: string
21143
+ enum:
21144
+ - caller
21145
+ templateId:
21146
+ type: string
21147
+ message:
21148
+ $ref: "#/components/schemas/TypedMessage"
21149
+ channel:
21150
+ type: string
21151
+ enum:
21152
+ - preferred
21153
+ - email
21154
+ - sms
21155
+ - whatsapp
21156
+ - push
21157
+ - wallet
21158
+ props:
21159
+ type: object
21160
+ additionalProperties: true
21161
+ include:
21162
+ type: object
21163
+ additionalProperties: true
21164
+ about:
21165
+ $ref: "#/components/schemas/MessageAbout"
21166
+ ref:
21167
+ type: string
21168
+ attach:
21169
+ type: array
21170
+ items:
21171
+ $ref: "#/components/schemas/EmailAttachmentSpec"
20910
21172
  ServerFunctionSl:
20911
21173
  type: object
20912
21174
  properties:
21175
+ workOrders:
21176
+ $ref: "#/components/schemas/WorkOrdersApi"
21177
+ stock:
21178
+ $ref: "#/components/schemas/StockApi"
21179
+ boms:
21180
+ $ref: "#/components/schemas/BomsApi"
21181
+ madeFrom:
21182
+ $ref: "#/components/schemas/MadeFromApi"
21183
+ operations:
21184
+ $ref: "#/components/schemas/OperationsApi"
20913
21185
  bookings:
20914
21186
  $ref: "#/components/schemas/ServerFunctionBookings"
20915
21187
  appRecords:
20916
21188
  type: object
20917
21189
  additionalProperties: true
21190
+ appOptions:
21191
+ type: object
21192
+ additionalProperties: true
21193
+ userGroups:
21194
+ type: object
21195
+ additionalProperties: true
20918
21196
  history:
20919
21197
  type: object
20920
21198
  additionalProperties: true
@@ -20929,25 +21207,135 @@ components:
20929
21207
  interactions:
20930
21208
  type: object
20931
21209
  additionalProperties: true
21210
+ messages:
21211
+ type: object
21212
+ additionalProperties: true
20932
21213
  tools:
20933
21214
  type: object
20934
21215
  additionalProperties: true
21216
+ assets:
21217
+ $ref: "#/components/schemas/ServerFunctionAssets"
21218
+ ai:
21219
+ $ref: "#/components/schemas/ServerFunctionAi"
20935
21220
  products: {}
20936
21221
  attestations: {}
20937
21222
  appData:
20938
21223
  $ref: "#/components/schemas/AppDataHandle"
20939
21224
  required:
21225
+ - workOrders
21226
+ - stock
21227
+ - boms
21228
+ - madeFrom
21229
+ - operations
20940
21230
  - bookings
20941
21231
  - appRecords
21232
+ - appOptions
21233
+ - userGroups
20942
21234
  - history
20943
21235
  - counters
20944
21236
  - tags
20945
21237
  - contacts
20946
21238
  - interactions
21239
+ - messages
20947
21240
  - tools
21241
+ - assets
21242
+ - ai
20948
21243
  - products
20949
21244
  - attestations
20950
21245
  - appData
21246
+ ServerFunctionAsset:
21247
+ type: object
21248
+ properties:
21249
+ id:
21250
+ type: string
21251
+ appId:
21252
+ type: string
21253
+ productId:
21254
+ type: string
21255
+ proofId:
21256
+ type: string
21257
+ name:
21258
+ type: string
21259
+ assetType:
21260
+ type: string
21261
+ mimeType:
21262
+ type: string
21263
+ size:
21264
+ type: number
21265
+ width:
21266
+ type: number
21267
+ height:
21268
+ type: number
21269
+ hash:
21270
+ type: string
21271
+ url:
21272
+ type: string
21273
+ assetUrl:
21274
+ type: string
21275
+ thumbnail:
21276
+ type: string
21277
+ labels:
21278
+ type: array
21279
+ items:
21280
+ type: string
21281
+ metadata:
21282
+ type: object
21283
+ additionalProperties: true
21284
+ versions:
21285
+ type: number
21286
+ status:
21287
+ type: string
21288
+ createdAt:
21289
+ type: string
21290
+ updatedAt:
21291
+ type: string
21292
+ required:
21293
+ - id
21294
+ - appId
21295
+ - productId
21296
+ - proofId
21297
+ - name
21298
+ - assetType
21299
+ - mimeType
21300
+ - size
21301
+ - width
21302
+ - height
21303
+ - hash
21304
+ - url
21305
+ - assetUrl
21306
+ - thumbnail
21307
+ - labels
21308
+ - metadata
21309
+ - versions
21310
+ - status
21311
+ - createdAt
21312
+ - updatedAt
21313
+ ServerFunctionAssets:
21314
+ type: object
21315
+ properties: {}
21316
+ ServerFunctionAiRequest:
21317
+ type: object
21318
+ properties:
21319
+ prompt:
21320
+ type: string
21321
+ system:
21322
+ type: string
21323
+ files:
21324
+ type: array
21325
+ items:
21326
+ type: object
21327
+ additionalProperties: true
21328
+ schema:
21329
+ type: object
21330
+ additionalProperties: true
21331
+ quality:
21332
+ type: string
21333
+ enum:
21334
+ - fast
21335
+ - best
21336
+ ServerFunctionAi:
21337
+ type: object
21338
+ properties: {}
20951
21339
  ServerFunctionCaller:
20952
21340
  type: object
20953
21341
  properties:
@@ -20961,10 +21349,16 @@ components:
20961
21349
  type: string
20962
21350
  via:
20963
21351
  $ref: "#/components/schemas/AppFunctionTriggerType"
21352
+ userGroups:
21353
+ type: array
21354
+ items:
21355
+ type: object
21356
+ additionalProperties: true
20964
21357
  required:
20965
21358
  - userId
20966
21359
  - anonymous
20967
21360
  - via
21361
+ - userGroups
20968
21362
  CallerContact:
20969
21363
  type: object
20970
21364
  properties:
@@ -21186,6 +21580,35 @@ components:
21186
21580
  required:
21187
21581
  - id
21188
21582
  - title
21583
+ AdminView:
21584
+ type: object
21585
+ properties:
21586
+ id:
21587
+ type: string
21588
+ title:
21589
+ type: string
21590
+ path:
21591
+ type: string
21592
+ group:
21593
+ type: string
21594
+ enum:
21595
+ - main
21596
+ - settings
21597
+ - record
21598
+ within:
21599
+ type: string
21600
+ icon:
21601
+ type: string
21602
+ description:
21603
+ type: string
21604
+ params:
21605
+ type: object
21606
+ additionalProperties:
21607
+ type: string
21608
+ required:
21609
+ - id
21610
+ - title
21611
+ - path
21189
21612
  AppManifest:
21190
21613
  type: object
21191
21614
  properties:
@@ -21265,6 +21688,10 @@ components:
21265
21688
  type: array
21266
21689
  items:
21267
21690
  $ref: "#/components/schemas/PublicView"
21691
+ adminViews:
21692
+ type: array
21693
+ items:
21694
+ $ref: "#/components/schemas/AdminView"
21268
21695
  executor:
21269
21696
  $ref: "#/components/schemas/AppManifestExecutor"
21270
21697
  functions:
@@ -21699,6 +22126,14 @@ components:
21699
22126
  properties:
21700
22127
  force:
21701
22128
  type: boolean
22129
+ ServerFunctionFileInput:
22130
+ type: object
22131
+ properties:
22132
+ base64:
22133
+ type: object
22134
+ additionalProperties: true
22135
+ required:
22136
+ - base64
21702
22137
  AppFunctionTriggerType:
21703
22138
  type: string
21704
22139
  enum:
@@ -21718,6 +22153,9 @@ components:
21718
22153
  RecordTransactionOp:
21719
22154
  type: object
21720
22155
  additionalProperties: true
22156
+ ServerFunctionMessageResult:
22157
+ type: object
22158
+ additionalProperties: true
21721
22159
  PaginatedResponse:
21722
22160
  type: object
21723
22161
  properties:
@@ -22888,6 +23326,38 @@ components:
22888
23326
  - facet
22889
23327
  - collection
22890
23328
  - universal
23329
+ AppOption:
23330
+ type: object
23331
+ properties:
23332
+ id:
23333
+ type: string
23334
+ label:
23335
+ type: string
23336
+ sublabel:
23337
+ type: string
23338
+ active:
23339
+ type: boolean
23340
+ order:
23341
+ type: number
23342
+ required:
23343
+ - id
23344
+ - label
23345
+ - active
23346
+ - order
23347
+ AppOptionValueInput:
23348
+ type: object
23349
+ properties:
23350
+ code:
23351
+ type: string
23352
+ label:
23353
+ type: string
23354
+ active:
23355
+ type: boolean
23356
+ required:
23357
+ - code
23358
+ AppOptionsResponse:
23359
+ type: object
23360
+ additionalProperties: true
22891
23361
  AssetRef:
22892
23362
  type: object
22893
23363
  properties:
@@ -24661,6 +25131,10 @@ components:
24661
25131
  type: string
24662
25132
  subtitle:
24663
25133
  type: string
25134
+ registerTitle:
25135
+ type: string
25136
+ registerSubtitle:
25137
+ type: string
24664
25138
  primaryColor:
24665
25139
  type: string
24666
25140
  secondaryColor:
@@ -24669,19 +25143,153 @@ components:
24669
25143
  type: string
24670
25144
  buttonStyle:
24671
25145
  type: string
25146
+ enum:
25147
+ - rounded
25148
+ - square
25149
+ - pill
24672
25150
  fontFamily:
24673
25151
  type: string
25152
+ theme:
25153
+ type: string
25154
+ enum:
25155
+ - light
25156
+ - dark
25157
+ - auto
25158
+ inheritHostStyles:
25159
+ type: boolean
25160
+ minimal:
25161
+ type: boolean
25162
+ customCss:
25163
+ type: string
25164
+ termsUrl:
25165
+ type: string
25166
+ privacyUrl:
25167
+ type: string
25168
+ AuthKitEmailTemplate:
25169
+ type: object
25170
+ properties:
25171
+ subject:
25172
+ type: string
25173
+ header:
25174
+ type: string
25175
+ introText:
25176
+ type: string
25177
+ buttonText:
25178
+ type: string
25179
+ footerText:
25180
+ type: string
25181
+ AuthKitMfaConfig:
25182
+ type: object
25183
+ properties:
25184
+ mode:
25185
+ type: string
25186
+ enum:
25187
+ - off
25188
+ - optional
25189
+ - risk-based
25190
+ - always
25191
+ factorsEnabled:
25192
+ type: object
25193
+ additionalProperties: true
25194
+ minimumFactors:
25195
+ type: number
25196
+ trustedDeviceDurationDays:
25197
+ type: number
25198
+ enforceForAdmins:
25199
+ type: boolean
24674
25200
  AuthKitConfig:
24675
25201
  type: object
24676
25202
  properties:
24677
25203
  id:
24678
25204
  type: string
25205
+ name:
25206
+ type: string
24679
25207
  branding:
24680
25208
  $ref: "#/components/schemas/AuthKitBrandingConfig"
24681
25209
  enabledProviders:
25210
+ type: array
25211
+ items:
25212
+ $ref: "#/components/schemas/AuthKitProvider"
25213
+ providerOrder:
25214
+ type: array
25215
+ items:
25216
+ $ref: "#/components/schemas/AuthKitProvider"
25217
+ emailDisplayMode:
25218
+ type: string
25219
+ enum:
25220
+ - form
25221
+ - button
25222
+ signupProminence:
25223
+ type: string
25224
+ enum:
25225
+ - none
25226
+ - minimal
25227
+ - balanced
25228
+ - emphasized
25229
+ signupRedirectUrl:
25230
+ type: string
25231
+ googleClientId:
25232
+ type: string
25233
+ googleOAuthFlow:
25234
+ type: string
25235
+ enum:
25236
+ - oneTap
25237
+ - popup
25238
+ - redirect
25239
+ whitelistedGoogleDomains:
24682
25240
  type: array
24683
25241
  items:
24684
25242
  type: string
25243
+ appleClientIds:
25244
+ type: array
25245
+ items:
25246
+ type: string
25247
+ linkedInClientId:
25248
+ type: string
25249
+ whatsappPrefillMessage:
25250
+ type: string
25251
+ whatsappReply:
25252
+ type: object
25253
+ additionalProperties: true
25254
+ registrationFields:
25255
+ type: array
25256
+ items:
25257
+ type: object
25258
+ additionalProperties: true
25259
+ collectNameOnPasswordlessSignup:
25260
+ type: boolean
25261
+ emailVerificationMode:
25262
+ type: string
25263
+ enum:
25264
+ - immediate
25265
+ - verify-auto-login
25266
+ - verify-manual-login
25267
+ emailVerificationGracePeriod:
25268
+ type: number
25269
+ lockUnverifiedAfterGrace:
25270
+ type: boolean
25271
+ allowPasswordReset:
25272
+ type: boolean
25273
+ mfa:
25274
+ $ref: "#/components/schemas/AuthKitMfaConfig"
25275
+ afterSignInUrl:
25276
+ type: string
25277
+ allowedRedirectDomains:
25278
+ type: array
25279
+ items:
25280
+ type: string
25281
+ texts:
25282
+ $ref: "#/components/schemas/AuthKitTextKey"
25283
+ emailTemplates:
25284
+ $ref: "#/components/schemas/AuthKitEmailKind"
25285
+ emailBranding:
25286
+ type: object
25287
+ additionalProperties: true
25288
+ secrets:
25289
+ type: object
25290
+ additionalProperties:
25291
+ type: object
25292
+ additionalProperties: true
24685
25293
  customCss:
24686
25294
  type: string
24687
25295
  termsUrl:
@@ -24775,6 +25383,149 @@ components:
24775
25383
  required:
24776
25384
  - identity
24777
25385
  - message
25386
+ AuthKitSchema:
25387
+ type: object
25388
+ properties:
25389
+ providers:
25390
+ type: array
25391
+ items:
25392
+ $ref: "#/components/schemas/AuthKitProvider"
25393
+ emailKinds:
25394
+ type: array
25395
+ items:
25396
+ $ref: "#/components/schemas/AuthKitEmailKind"
25397
+ emailFields:
25398
+ type: array
25399
+ items:
25400
+ type: object
25401
+ additionalProperties: true
25402
+ textKeys:
25403
+ type: array
25404
+ items:
25405
+ $ref: "#/components/schemas/AuthKitTextKey"
25406
+ secrets:
25407
+ type: array
25408
+ items:
25409
+ type: string
25410
+ serverOwned:
25411
+ type: array
25412
+ items:
25413
+ type: string
25414
+ fields:
25415
+ type: array
25416
+ items:
25417
+ type: object
25418
+ additionalProperties: true
25419
+ required:
25420
+ - providers
25421
+ - emailKinds
25422
+ - emailFields
25423
+ - textKeys
25424
+ - secrets
25425
+ - serverOwned
25426
+ - fields
25427
+ AuthKitCheck:
25428
+ type: object
25429
+ properties:
25430
+ level:
25431
+ type: string
25432
+ enum:
25433
+ - problem
25434
+ - warning
25435
+ - info
25436
+ code:
25437
+ type: string
25438
+ message:
25439
+ type: string
25440
+ setting:
25441
+ type: string
25442
+ required:
25443
+ - level
25444
+ - code
25445
+ - message
25446
+ AuthKitSettingsResponse:
25447
+ type: object
25448
+ properties:
25449
+ authKitId:
25450
+ type: string
25451
+ ownLogins:
25452
+ type: string
25453
+ enum:
25454
+ - own
25455
+ - shared
25456
+ config:
25457
+ $ref: "#/components/schemas/AuthKitConfig"
25458
+ effective:
25459
+ $ref: "#/components/schemas/AuthKitConfig"
25460
+ secrets:
25461
+ type: object
25462
+ additionalProperties:
25463
+ type: object
25464
+ additionalProperties: true
25465
+ checks:
25466
+ type: array
25467
+ items:
25468
+ $ref: "#/components/schemas/AuthKitCheck"
25469
+ required:
25470
+ - authKitId
25471
+ - ownLogins
25472
+ - config
25473
+ - effective
25474
+ - secrets
25475
+ - checks
25476
+ AuthKitSetupRequest:
25477
+ type: object
25478
+ properties:
25479
+ name:
25480
+ type: string
25481
+ ownLogins:
25482
+ type: boolean
25483
+ settings:
25484
+ $ref: "#/components/schemas/AuthKitConfigInput"
25485
+ AuthKitSetupResponse:
25486
+ type: object
25487
+ properties:
25488
+ authKit:
25489
+ $ref: "#/components/schemas/AuthKitConfig"
25490
+ created:
25491
+ type: boolean
25492
+ ownLogins:
25493
+ type: string
25494
+ enum:
25495
+ - own
25496
+ - shared
25497
+ changed:
25498
+ type: array
25499
+ items:
25500
+ type: string
25501
+ required:
25502
+ - authKit
25503
+ - created
25504
+ - ownLogins
25505
+ - changed
25506
+ AuthKitEmailPreview:
25507
+ type: object
25508
+ properties:
25509
+ kind:
25510
+ $ref: "#/components/schemas/AuthKitEmailKind"
25511
+ subject:
25512
+ type: string
25513
+ html:
25514
+ type: string
25515
+ required:
25516
+ - kind
25517
+ - subject
25518
+ - html
25519
+ AuthKitSecretLink:
25520
+ type: object
25521
+ properties:
25522
+ url:
25523
+ type: string
25524
+ expiresAt:
25525
+ type: string
25526
+ required:
25527
+ - url
25528
+ - expiresAt
24778
25529
  AuthKitSecurityConfig:
24779
25530
  type: object
24780
25531
  properties:
@@ -24868,6 +25619,53 @@ components:
24868
25619
  - failed
24869
25620
  - expired
24870
25621
  - unknown
25622
+ AuthKitProvider:
25623
+ type: string
25624
+ enum:
25625
+ - email
25626
+ - magic-link
25627
+ - phone
25628
+ - whatsapp
25629
+ - google
25630
+ - apple
25631
+ - microsoft
25632
+ - linkedin
25633
+ AuthKitEmailKind:
25634
+ type: string
25635
+ enum:
25636
+ - passwordReset
25637
+ - emailVerification
25638
+ - magicLink
25639
+ - memberInvite
25640
+ - invite
25641
+ - addedToCollection
25642
+ - mfaCode
25643
+ - providerLinked
25644
+ AuthKitTextKey:
25645
+ type: string
25646
+ enum:
25647
+ - signInTitle
25648
+ - signInSubtitle
25649
+ - registerTitle
25650
+ - registerSubtitle
25651
+ - emailLabel
25652
+ - passwordLabel
25653
+ - signInButton
25654
+ - registerButton
25655
+ - forgotPassword
25656
+ - noAccount
25657
+ - haveAccount
25658
+ - continueWithEmail
25659
+ - continueWithGoogle
25660
+ - continueWithApple
25661
+ - continueWithMicrosoft
25662
+ - continueWithLinkedIn
25663
+ - continueWithPhone
25664
+ - continueWithWhatsApp
25665
+ - continueWithMagicLink
25666
+ - sendMagicLink
25667
+ - magicLinkSent
25668
+ - inviteOnlyNotice
24871
25669
  AuthKitConfigInput:
24872
25670
  $ref: "#/components/schemas/AuthKitConfig"
24873
25671
  PasswordPolicyErrorCode:
@@ -27387,6 +28185,8 @@ components:
27387
28185
  type: string
27388
28186
  templateId:
27389
28187
  type: string
28188
+ message:
28189
+ $ref: "#/components/schemas/TypedMessage"
27390
28190
  channel:
27391
28191
  type: string
27392
28192
  enum:
@@ -27420,13 +28220,18 @@ components:
27420
28220
  type: string
27421
28221
  appId:
27422
28222
  type: string
28223
+ about:
28224
+ $ref: "#/components/schemas/MessageAbout"
28225
+ category:
28226
+ type: string
28227
+ enum:
28228
+ - service
27423
28229
  attach:
27424
28230
  type: array
27425
28231
  items:
27426
28232
  $ref: "#/components/schemas/EmailAttachmentSpec"
27427
28233
  required:
27428
28234
  - contactId
27429
- - templateId
27430
28235
  TransactionalSendResponse:
27431
28236
  type: object
27432
28237
  properties:
@@ -27450,6 +28255,37 @@ components:
27450
28255
  required:
27451
28256
  - ok
27452
28257
  - channel
28258
+ TypedMessage:
28259
+ type: object
28260
+ properties:
28261
+ subject:
28262
+ type: string
28263
+ body:
28264
+ type: string
28265
+ sms:
28266
+ type: string
28267
+ required:
28268
+ - body
28269
+ MessageAbout:
28270
+ type: object
28271
+ properties:
28272
+ appId:
28273
+ type: string
28274
+ type:
28275
+ type: string
28276
+ id:
28277
+ type: string
28278
+ view:
28279
+ type: string
28280
+ params:
28281
+ type: object
28282
+ additionalProperties:
28283
+ type: string
28284
+ label:
28285
+ type: string
28286
+ required:
28287
+ - type
28288
+ - id
27453
28289
  TransactionalSendError:
27454
28290
  type: object
27455
28291
  properties:
@@ -28120,6 +28956,8 @@ components:
28120
28956
  additionalProperties: true
28121
28957
  parentContainerId:
28122
28958
  type: string
28959
+ fixed:
28960
+ type: boolean
28123
28961
  children:
28124
28962
  type: array
28125
28963
  items:
@@ -28193,6 +29031,8 @@ components:
28193
29031
  additionalProperties: true
28194
29032
  parentContainerId:
28195
29033
  type: string
29034
+ fixed:
29035
+ type: boolean
28196
29036
  required:
28197
29037
  - containerType
28198
29038
  UpdateContainerInput:
@@ -28213,6 +29053,8 @@ components:
28213
29053
  additionalProperties: true
28214
29054
  parentContainerId:
28215
29055
  type: string
29056
+ fixed:
29057
+ type: boolean
28216
29058
  AddContainerItemsInput:
28217
29059
  type: object
28218
29060
  properties:
@@ -28817,8 +29659,39 @@ components:
28817
29659
  type: array
28818
29660
  items:
28819
29661
  type: string
29662
+ list:
29663
+ type: string
28820
29664
  required:
28821
29665
  - type
29666
+ AppValueListValue:
29667
+ type: object
29668
+ properties:
29669
+ code:
29670
+ type: string
29671
+ label:
29672
+ type: string
29673
+ active:
29674
+ type: boolean
29675
+ required:
29676
+ - code
29677
+ AppValueList:
29678
+ type: object
29679
+ properties:
29680
+ label:
29681
+ type: string
29682
+ description:
29683
+ type: string
29684
+ values:
29685
+ type: array
29686
+ items:
29687
+ $ref: "#/components/schemas/AppValueListValue"
29688
+ editable:
29689
+ type: boolean
29690
+ public:
29691
+ type: boolean
29692
+ required:
29693
+ - label
29694
+ - values
28822
29695
  AppDataType:
28823
29696
  type: object
28824
29697
  properties:
@@ -28859,6 +29732,22 @@ components:
28859
29732
  additionalProperties: true
28860
29733
  since:
28861
29734
  type: string
29735
+ title:
29736
+ type: string
29737
+ label:
29738
+ type: string
29739
+ sublabel:
29740
+ type: string
29741
+ activeField:
29742
+ type: string
29743
+ orderField:
29744
+ type: string
29745
+ small:
29746
+ type: boolean
29747
+ setup:
29748
+ type: boolean
29749
+ checked:
29750
+ type: boolean
28862
29751
  required:
28863
29752
  - description
28864
29753
  - storage
@@ -28872,6 +29761,10 @@ components:
28872
29761
  type: object
28873
29762
  additionalProperties:
28874
29763
  $ref: "#/components/schemas/AppDataType"
29764
+ lists:
29765
+ type: object
29766
+ additionalProperties:
29767
+ $ref: "#/components/schemas/AppValueList"
28875
29768
  required:
28876
29769
  - schemaVersion
28877
29770
  - types
@@ -32101,6 +32994,598 @@ components:
32101
32994
  - rescan
32102
32995
  - invalid
32103
32996
  - error
32997
+ WorkOrderStage:
32998
+ type: object
32999
+ properties:
33000
+ key:
33001
+ type: string
33002
+ position:
33003
+ type: number
33004
+ status:
33005
+ $ref: "#/components/schemas/WorkOrderStageStatus"
33006
+ plannedStart:
33007
+ type: string
33008
+ plannedEnd:
33009
+ type: string
33010
+ startedAt:
33011
+ type: string
33012
+ doneAt:
33013
+ type: string
33014
+ quantityDone:
33015
+ type: number
33016
+ quantityScrapped:
33017
+ type: number
33018
+ data:
33019
+ type: object
33020
+ additionalProperties: true
33021
+ required:
33022
+ - key
33023
+ - position
33024
+ - status
33025
+ - plannedStart
33026
+ - plannedEnd
33027
+ - startedAt
33028
+ - doneAt
33029
+ - quantityDone
33030
+ - quantityScrapped
33031
+ - data
33032
+ WorkOrder:
33033
+ type: object
33034
+ properties:
33035
+ id:
33036
+ type: string
33037
+ collectionId:
33038
+ type: string
33039
+ appId:
33040
+ type: string
33041
+ ref:
33042
+ type: string
33043
+ kind:
33044
+ type: string
33045
+ productId:
33046
+ type: string
33047
+ variantId:
33048
+ type: string
33049
+ quantity:
33050
+ type: number
33051
+ unit:
33052
+ type: string
33053
+ dueAt:
33054
+ type: string
33055
+ priority:
33056
+ type: number
33057
+ status:
33058
+ $ref: "#/components/schemas/WorkOrderStatus"
33059
+ statusReason:
33060
+ type: string
33061
+ orderId:
33062
+ type: string
33063
+ orderItemId:
33064
+ type: string
33065
+ parentId:
33066
+ type: string
33067
+ outputBatchId:
33068
+ type: string
33069
+ stages:
33070
+ type: array
33071
+ items:
33072
+ $ref: "#/components/schemas/WorkOrderStage"
33073
+ currentStage:
33074
+ type: string
33075
+ late:
33076
+ type: boolean
33077
+ data:
33078
+ type: object
33079
+ additionalProperties: true
33080
+ createdBy:
33081
+ type: string
33082
+ createdAt:
33083
+ type: string
33084
+ updatedAt:
33085
+ type: string
33086
+ closedAt:
33087
+ type: string
33088
+ required:
33089
+ - id
33090
+ - collectionId
33091
+ - appId
33092
+ - ref
33093
+ - kind
33094
+ - productId
33095
+ - variantId
33096
+ - quantity
33097
+ - unit
33098
+ - dueAt
33099
+ - priority
33100
+ - status
33101
+ - statusReason
33102
+ - orderId
33103
+ - orderItemId
33104
+ - parentId
33105
+ - outputBatchId
33106
+ - stages
33107
+ - currentStage
33108
+ - late
33109
+ - data
33110
+ - createdBy
33111
+ - createdAt
33112
+ - updatedAt
33113
+ - closedAt
33114
+ CreateWorkOrderInput:
33115
+ type: object
33116
+ properties:
33117
+ ref:
33118
+ type: string
33119
+ kind:
33120
+ type: string
33121
+ productId:
33122
+ type: string
33123
+ variantId:
33124
+ type: string
33125
+ quantity:
33126
+ type: number
33127
+ unit:
33128
+ type: string
33129
+ dueAt:
33130
+ type: string
33131
+ priority:
33132
+ type: number
33133
+ orderId:
33134
+ type: string
33135
+ orderItemId:
33136
+ type: string
33137
+ parentId:
33138
+ type: string
33139
+ outputBatchId:
33140
+ type: string
33141
+ data:
33142
+ type: object
33143
+ additionalProperties: true
33144
+ stages:
33145
+ type: array
33146
+ items:
33147
+ $ref: "#/components/schemas/WorkOrderStageInput"
33148
+ required:
33149
+ - ref
33150
+ WorkOrderListParams:
33151
+ type: object
33152
+ properties:
33153
+ status:
33154
+ type: array
33155
+ items:
33156
+ $ref: "#/components/schemas/WorkOrderStatus"
33157
+ appId:
33158
+ type: string
33159
+ productId:
33160
+ type: string
33161
+ orderId:
33162
+ type: string
33163
+ parentId:
33164
+ type: string
33165
+ kind:
33166
+ type: string
33167
+ late:
33168
+ type: boolean
33169
+ dueFrom:
33170
+ type: string
33171
+ dueTo:
33172
+ type: string
33173
+ q:
33174
+ type: string
33175
+ sort:
33176
+ type: string
33177
+ enum:
33178
+ - due
33179
+ - priority
33180
+ - created
33181
+ - ref
33182
+ limit:
33183
+ type: number
33184
+ offset:
33185
+ type: number
33186
+ WorkOrdersApi:
33187
+ type: object
33188
+ properties: {}
33189
+ StockTarget:
33190
+ type: object
33191
+ properties:
33192
+ type:
33193
+ type: object
33194
+ additionalProperties: true
33195
+ required:
33196
+ - type
33197
+ StockLine:
33198
+ type: object
33199
+ properties:
33200
+ id:
33201
+ type: string
33202
+ containerId:
33203
+ type: string
33204
+ productId:
33205
+ type: string
33206
+ variantId:
33207
+ type: string
33208
+ batchId:
33209
+ type: string
33210
+ state:
33211
+ $ref: "#/components/schemas/StockState"
33212
+ allocatedTo:
33213
+ $ref: "#/components/schemas/StockTarget"
33214
+ quantity:
33215
+ type: number
33216
+ unit:
33217
+ type: string
33218
+ updatedAt:
33219
+ type: string
33220
+ required:
33221
+ - id
33222
+ - containerId
33223
+ - productId
33224
+ - variantId
33225
+ - batchId
33226
+ - state
33227
+ - allocatedTo
33228
+ - quantity
33229
+ - unit
33230
+ - updatedAt
33231
+ StockTotals:
33232
+ type: object
33233
+ properties:
33234
+ available:
33235
+ type: object
33236
+ additionalProperties: true
33237
+ required:
33238
+ - available
33239
+ StockItem:
33240
+ type: object
33241
+ properties:
33242
+ productId:
33243
+ type: object
33244
+ additionalProperties: true
33245
+ required:
33246
+ - productId
33247
+ StockMovementExtras:
33248
+ type: object
33249
+ properties:
33250
+ workOrderId:
33251
+ type: object
33252
+ additionalProperties: true
33253
+ StockMovementOptions:
33254
+ type: object
33255
+ properties:
33256
+ idempotencyKey:
33257
+ type: string
33258
+ StockMovement:
33259
+ type: object
33260
+ properties:
33261
+ movementId:
33262
+ type: string
33263
+ kind:
33264
+ type: string
33265
+ enum:
33266
+ - receive
33267
+ - produce
33268
+ - consume
33269
+ - move
33270
+ - allocate
33271
+ - release
33272
+ - hold
33273
+ - unhold
33274
+ - adjust
33275
+ productId:
33276
+ type: string
33277
+ quantity:
33278
+ type: number
33279
+ unit:
33280
+ type: string
33281
+ from:
33282
+ $ref: "#/components/schemas/StockLine"
33283
+ to:
33284
+ $ref: "#/components/schemas/StockLine"
33285
+ replayed:
33286
+ type: boolean
33287
+ required:
33288
+ - movementId
33289
+ - kind
33290
+ - productId
33291
+ - quantity
33292
+ - unit
33293
+ - replayed
33294
+ StockWhereLine:
33295
+ type: object
33296
+ properties:
33297
+ container:
33298
+ type: object
33299
+ additionalProperties: true
33300
+ path:
33301
+ type: array
33302
+ items:
33303
+ type: string
33304
+ place:
33305
+ type: object
33306
+ additionalProperties: true
33307
+ required:
33308
+ - container
33309
+ - path
33310
+ - place
33311
+ StockPosition:
33312
+ type: object
33313
+ properties:
33314
+ product:
33315
+ type: object
33316
+ additionalProperties: true
33317
+ onHand:
33318
+ $ref: "#/components/schemas/StockTotals"
33319
+ where:
33320
+ type: array
33321
+ items:
33322
+ type: object
33323
+ additionalProperties: true
33324
+ onOrder:
33325
+ type: object
33326
+ additionalProperties: true
33327
+ beingMade:
33328
+ type: object
33329
+ additionalProperties: true
33330
+ needed:
33331
+ type: object
33332
+ additionalProperties: true
33333
+ projected:
33334
+ type: array
33335
+ items:
33336
+ type: object
33337
+ additionalProperties: true
33338
+ shortfall:
33339
+ type: object
33340
+ additionalProperties: true
33341
+ horizonDays:
33342
+ type: number
33343
+ undatedLines:
33344
+ type: number
33345
+ asOf:
33346
+ type: string
33347
+ sources:
33348
+ type: object
33349
+ additionalProperties: true
33350
+ required:
33351
+ - product
33352
+ - onHand
33353
+ - where
33354
+ - onOrder
33355
+ - beingMade
33356
+ - needed
33357
+ - projected
33358
+ - shortfall
33359
+ - horizonDays
33360
+ - asOf
33361
+ - sources
33362
+ StockApi:
33363
+ type: object
33364
+ properties: {}
33365
+ BomLine:
33366
+ type: object
33367
+ properties:
33368
+ componentProductId:
33369
+ type: object
33370
+ additionalProperties: true
33371
+ required:
33372
+ - componentProductId
33373
+ Bom:
33374
+ type: object
33375
+ properties:
33376
+ id:
33377
+ type: string
33378
+ productId:
33379
+ type: string
33380
+ variantId:
33381
+ type: string
33382
+ version:
33383
+ type: number
33384
+ validFrom:
33385
+ type: string
33386
+ validTo:
33387
+ type: string
33388
+ yields:
33389
+ type: number
33390
+ note:
33391
+ type: string
33392
+ lines:
33393
+ type: array
33394
+ items:
33395
+ type: object
33396
+ additionalProperties: true
33397
+ data:
33398
+ type: object
33399
+ additionalProperties: true
33400
+ createdBy:
33401
+ type: string
33402
+ createdAt:
33403
+ type: string
33404
+ required:
33405
+ - id
33406
+ - productId
33407
+ - variantId
33408
+ - version
33409
+ - validFrom
33410
+ - validTo
33411
+ - yields
33412
+ - note
33413
+ - lines
33414
+ - data
33415
+ - createdBy
33416
+ - createdAt
33417
+ BomTreeNode:
33418
+ type: object
33419
+ properties:
33420
+ productId:
33421
+ type: array
33422
+ items:
33423
+ type: object
33424
+ additionalProperties: true
33425
+ required:
33426
+ - productId
33427
+ BomExplosion:
33428
+ type: object
33429
+ properties:
33430
+ productId:
33431
+ type: string
33432
+ variantId:
33433
+ type: string
33434
+ quantity:
33435
+ type: number
33436
+ hasBom:
33437
+ type: boolean
33438
+ tree:
33439
+ type: array
33440
+ items:
33441
+ $ref: "#/components/schemas/BomTreeNode"
33442
+ materials:
33443
+ type: array
33444
+ items:
33445
+ type: object
33446
+ additionalProperties: true
33447
+ required:
33448
+ - productId
33449
+ - variantId
33450
+ - quantity
33451
+ - hasBom
33452
+ - tree
33453
+ - materials
33454
+ BomsApi:
33455
+ type: object
33456
+ properties: {}
33457
+ MadeFromSubject:
33458
+ type: object
33459
+ properties:
33460
+ type:
33461
+ type: string
33462
+ enum:
33463
+ - batch
33464
+ - proof
33465
+ required:
33466
+ - type
33467
+ MadeFromSource:
33468
+ type: object
33469
+ properties:
33470
+ type:
33471
+ type: string
33472
+ enum:
33473
+ - batch
33474
+ - proof
33475
+ - product
33476
+ required:
33477
+ - type
33478
+ MadeFromEntry:
33479
+ type: object
33480
+ properties:
33481
+ id:
33482
+ type: string
33483
+ subject:
33484
+ $ref: "#/components/schemas/MadeFromSubject"
33485
+ source:
33486
+ $ref: "#/components/schemas/MadeFromSource"
33487
+ productId:
33488
+ type: string
33489
+ quantity:
33490
+ type: number
33491
+ unit:
33492
+ type: string
33493
+ workOrderId:
33494
+ type: string
33495
+ at:
33496
+ type: string
33497
+ by:
33498
+ type: string
33499
+ endedAt:
33500
+ type: string
33501
+ data:
33502
+ type: object
33503
+ additionalProperties: true
33504
+ required:
33505
+ - id
33506
+ - subject
33507
+ - source
33508
+ - productId
33509
+ - quantity
33510
+ - unit
33511
+ - workOrderId
33512
+ - at
33513
+ - by
33514
+ - endedAt
33515
+ - data
33516
+ MadeFromTraceNode:
33517
+ type: object
33518
+ properties:
33519
+ source:
33520
+ type: array
33521
+ items:
33522
+ type: object
33523
+ additionalProperties: true
33524
+ required:
33525
+ - source
33526
+ MadeFromApi:
33527
+ type: object
33528
+ properties: {}
33529
+ OperationStep:
33530
+ type: object
33531
+ properties:
33532
+ op:
33533
+ type: array
33534
+ items:
33535
+ type: object
33536
+ additionalProperties: true
33537
+ required:
33538
+ - op
33539
+ OperationsApi:
33540
+ type: object
33541
+ properties: {}
33542
+ OperationsAdmin:
33543
+ type: object
33544
+ properties:
33545
+ workOrders:
33546
+ $ref: "#/components/schemas/WorkOrdersApi"
33547
+ stock:
33548
+ $ref: "#/components/schemas/StockApi"
33549
+ boms:
33550
+ $ref: "#/components/schemas/BomsApi"
33551
+ madeFrom:
33552
+ $ref: "#/components/schemas/MadeFromApi"
33553
+ transaction:
33554
+ type: object
33555
+ additionalProperties: true
33556
+ required:
33557
+ - workOrders
33558
+ - stock
33559
+ - boms
33560
+ - madeFrom
33561
+ - transaction
33562
+ WorkOrderStatus:
33563
+ type: string
33564
+ enum:
33565
+ - open
33566
+ - on-hold
33567
+ - blocked
33568
+ - done
33569
+ - cancelled
33570
+ WorkOrderStageStatus:
33571
+ type: string
33572
+ enum:
33573
+ - pending
33574
+ - active
33575
+ - done
33576
+ - skipped
33577
+ WorkOrderStageInput:
33578
+ type: object
33579
+ additionalProperties: true
33580
+ UpdateWorkOrderInput:
33581
+ $ref: "#/components/schemas/CreateWorkOrderInput"
33582
+ StockState:
33583
+ type: string
33584
+ enum:
33585
+ - available
33586
+ - allocated
33587
+ - held
33588
+ - quarantine
32104
33589
  OrderItem:
32105
33590
  type: object
32106
33591
  properties:
@@ -32114,6 +33599,7 @@ components:
32114
33599
  - tag
32115
33600
  - proof
32116
33601
  - serial
33602
+ - product
32117
33603
  itemId:
32118
33604
  type: string
32119
33605
  collectionId:
@@ -32124,6 +33610,14 @@ components:
32124
33610
  type: string
32125
33611
  batchId:
32126
33612
  type: string
33613
+ quantity:
33614
+ type: number
33615
+ unit:
33616
+ type: string
33617
+ quantityDone:
33618
+ type: number
33619
+ dueAt:
33620
+ type: string
32127
33621
  metadata:
32128
33622
  type: object
32129
33623
  additionalProperties: true
@@ -32136,8 +33630,50 @@ components:
32136
33630
  - orderId
32137
33631
  - itemType
32138
33632
  - itemId
33633
+ - quantity
33634
+ - quantityDone
32139
33635
  - metadata
32140
33636
  - createdAt
33637
+ OrderItemInput:
33638
+ type: object
33639
+ properties:
33640
+ itemType:
33641
+ type: string
33642
+ enum:
33643
+ - tag
33644
+ - proof
33645
+ - serial
33646
+ itemId:
33647
+ type: string
33648
+ metadata:
33649
+ type: object
33650
+ additionalProperties: true
33651
+ required:
33652
+ - itemType
33653
+ - itemId
33654
+ OrderQuantityLineInput:
33655
+ type: object
33656
+ properties:
33657
+ itemType:
33658
+ type: string
33659
+ enum:
33660
+ - product
33661
+ productId:
33662
+ type: string
33663
+ variantId:
33664
+ type: string
33665
+ quantity:
33666
+ type: number
33667
+ unit:
33668
+ type: string
33669
+ dueAt:
33670
+ type: string
33671
+ metadata:
33672
+ type: object
33673
+ additionalProperties: true
33674
+ required:
33675
+ - productId
33676
+ - quantity
32141
33677
  OrderSummary:
32142
33678
  type: object
32143
33679
  properties:
@@ -32170,6 +33706,12 @@ components:
32170
33706
  type: string
32171
33707
  status:
32172
33708
  type: string
33709
+ direction:
33710
+ $ref: "#/components/schemas/OrderDirection"
33711
+ partyId:
33712
+ type: string
33713
+ dueAt:
33714
+ type: string
32173
33715
  itemCount:
32174
33716
  type: number
32175
33717
  metadata:
@@ -32192,6 +33734,7 @@ components:
32192
33734
  - orgId
32193
33735
  - collectionId
32194
33736
  - status
33737
+ - direction
32195
33738
  - itemCount
32196
33739
  - metadata
32197
33740
  - createdAt
@@ -32200,29 +33743,28 @@ components:
32200
33743
  type: object
32201
33744
  properties:
32202
33745
  items:
32203
- type: object
32204
- additionalProperties: true
32205
- itemType:
33746
+ type: array
33747
+ items:
33748
+ anyOf:
33749
+ - $ref: "#/components/schemas/OrderItemInput"
33750
+ - $ref: "#/components/schemas/OrderQuantityLineInput"
33751
+ direction:
33752
+ $ref: "#/components/schemas/OrderDirection"
33753
+ partyId:
32206
33754
  type: string
32207
- enum:
32208
- - tag
32209
- - proof
32210
- - serial
32211
- itemId:
33755
+ dueAt:
32212
33756
  type: string
32213
- metadata:
32214
- type: object
32215
- additionalProperties: true
32216
33757
  orderRef:
32217
33758
  type: string
32218
33759
  customerId:
32219
33760
  type: string
32220
33761
  status:
32221
33762
  type: string
33763
+ metadata:
33764
+ type: object
33765
+ additionalProperties: true
32222
33766
  required:
32223
33767
  - items
32224
- - itemType
32225
- - itemId
32226
33768
  CreateOrderResponse:
32227
33769
  type: object
32228
33770
  properties: {}
@@ -32237,6 +33779,12 @@ components:
32237
33779
  UpdateOrderRequest:
32238
33780
  type: object
32239
33781
  properties:
33782
+ direction:
33783
+ $ref: "#/components/schemas/OrderDirection"
33784
+ partyId:
33785
+ type: string
33786
+ dueAt:
33787
+ type: string
32240
33788
  orderRef:
32241
33789
  type: string
32242
33790
  customerId:
@@ -32269,6 +33817,10 @@ components:
32269
33817
  type: string
32270
33818
  customerId:
32271
33819
  type: string
33820
+ direction:
33821
+ $ref: "#/components/schemas/OrderDirection"
33822
+ partyId:
33823
+ type: string
32272
33824
  includeItems:
32273
33825
  type: boolean
32274
33826
  ListOrdersResponse:
@@ -32954,6 +34506,11 @@ components:
32954
34506
  - scansByDay
32955
34507
  - adminScansByDay
32956
34508
  - customerScansByDay
34509
+ OrderDirection:
34510
+ type: string
34511
+ enum:
34512
+ - sales
34513
+ - purchase
32957
34514
  ProductKey:
32958
34515
  type: object
32959
34516
  properties:
@@ -34753,6 +36310,165 @@ components:
34753
36310
  anyOf:
34754
36311
  - $ref: "#/components/schemas/TranslationLookupSingleRequest"
34755
36312
  - $ref: "#/components/schemas/TranslationLookupBatchRequest"
36313
+ UserGroup:
36314
+ type: object
36315
+ properties:
36316
+ id:
36317
+ type: string
36318
+ collectionId:
36319
+ type: string
36320
+ key:
36321
+ type: string
36322
+ name:
36323
+ type: string
36324
+ description:
36325
+ type: string
36326
+ members:
36327
+ type: array
36328
+ items:
36329
+ type: string
36330
+ createdAt:
36331
+ type: string
36332
+ updatedAt:
36333
+ type: string
36334
+ deleted:
36335
+ type: boolean
36336
+ deletedAt:
36337
+ type: string
36338
+ required:
36339
+ - id
36340
+ - name
36341
+ CreateUserGroupRequest:
36342
+ type: object
36343
+ properties:
36344
+ name:
36345
+ type: string
36346
+ key:
36347
+ type: string
36348
+ description:
36349
+ type: string
36350
+ members:
36351
+ type: array
36352
+ items:
36353
+ type: string
36354
+ required:
36355
+ - name
36356
+ UpdateUserGroupRequest:
36357
+ type: object
36358
+ properties:
36359
+ name:
36360
+ type: string
36361
+ description:
36362
+ type: string
36363
+ members:
36364
+ type: array
36365
+ items:
36366
+ type: string
36367
+ UserGroupMember:
36368
+ type: object
36369
+ properties:
36370
+ uid:
36371
+ type: string
36372
+ name:
36373
+ type: string
36374
+ email:
36375
+ type: string
36376
+ required:
36377
+ - uid
36378
+ UserGroupRef:
36379
+ type: object
36380
+ properties:
36381
+ id:
36382
+ type: string
36383
+ key:
36384
+ type: string
36385
+ name:
36386
+ type: string
36387
+ required:
36388
+ - id
36389
+ - key
36390
+ - name
36391
+ MyUserGroups:
36392
+ type: object
36393
+ properties:
36394
+ userGroups:
36395
+ type: array
36396
+ items:
36397
+ type: string
36398
+ userGroupIds:
36399
+ type: array
36400
+ items:
36401
+ type: string
36402
+ required:
36403
+ - userGroups
36404
+ - userGroupIds
36405
+ UserGroupChange:
36406
+ type: object
36407
+ properties:
36408
+ id:
36409
+ type: string
36410
+ at:
36411
+ type: string
36412
+ type:
36413
+ $ref: "#/components/schemas/UserGroupChangeType"
36414
+ entityId:
36415
+ type: string
36416
+ data:
36417
+ type: object
36418
+ additionalProperties: true
36419
+ userGroupId:
36420
+ type: string
36421
+ key:
36422
+ type: string
36423
+ name:
36424
+ type: string
36425
+ userId:
36426
+ type: string
36427
+ previousName:
36428
+ type: string
36429
+ members:
36430
+ type: array
36431
+ items:
36432
+ type: string
36433
+ actorType:
36434
+ type: string
36435
+ actorId:
36436
+ type: string
36437
+ required:
36438
+ - id
36439
+ - at
36440
+ - type
36441
+ - entityId
36442
+ - data
36443
+ - userGroupId
36444
+ - key
36445
+ - name
36446
+ - actorType
36447
+ - actorId
36448
+ UserGroupHistoryParams:
36449
+ type: object
36450
+ properties:
36451
+ userGroupId:
36452
+ type: string
36453
+ userId:
36454
+ type: string
36455
+ from:
36456
+ type: string
36457
+ to:
36458
+ type: string
36459
+ limit:
36460
+ type: number
36461
+ AddUserGroupMemberRequest:
36462
+ type: object
36463
+ additionalProperties: true
36464
+ UserGroupChangeType:
36465
+ type: string
36466
+ enum:
36467
+ - usergroup.created
36468
+ - usergroup.renamed
36469
+ - usergroup.deleted
36470
+ - usergroup.member-added
36471
+ - usergroup.member-removed
34756
36472
  VariantResponse:
34757
36473
  type: object
34758
36474
  properties:
@@ -34879,6 +36595,106 @@ components:
34879
36595
  loading: {}
34880
36596
  required:
34881
36597
  - appId
36598
+ GuideInfo:
36599
+ type: object
36600
+ properties:
36601
+ enabled:
36602
+ type: boolean
36603
+ name:
36604
+ type: string
36605
+ modes:
36606
+ type: object
36607
+ additionalProperties: true
36608
+ suggestions:
36609
+ type: array
36610
+ items:
36611
+ type: string
36612
+ handoff:
36613
+ type: object
36614
+ additionalProperties: true
36615
+ required:
36616
+ - enabled
36617
+ ScreenContent:
36618
+ type: object
36619
+ properties:
36620
+ appId:
36621
+ type: string
36622
+ title:
36623
+ type: string
36624
+ content:
36625
+ type: string
36626
+ GuideWhere:
36627
+ type: object
36628
+ properties:
36629
+ appId:
36630
+ type: string
36631
+ path:
36632
+ type: string
36633
+ params:
36634
+ type: object
36635
+ additionalProperties:
36636
+ type: string
36637
+ GuideNavigate:
36638
+ type: object
36639
+ properties:
36640
+ appId:
36641
+ type: string
36642
+ path:
36643
+ type: string
36644
+ params:
36645
+ type: object
36646
+ additionalProperties:
36647
+ type: string
36648
+ required:
36649
+ - appId
36650
+ - path
36651
+ GuideCard:
36652
+ type: object
36653
+ properties:
36654
+ title:
36655
+ type: string
36656
+ rows:
36657
+ type: array
36658
+ items:
36659
+ type: object
36660
+ additionalProperties: true
36661
+ more:
36662
+ type: number
36663
+ required:
36664
+ - title
36665
+ - rows
36666
+ GuideStartOptions:
36667
+ type: object
36668
+ properties:
36669
+ surface:
36670
+ $ref: "#/components/schemas/GuideSurface"
36671
+ mode:
36672
+ type: string
36673
+ enum:
36674
+ - voice
36675
+ - text
36676
+ productId:
36677
+ type: string
36678
+ proofId:
36679
+ type: string
36680
+ apps:
36681
+ type: array
36682
+ items:
36683
+ type: object
36684
+ additionalProperties: true
36685
+ where:
36686
+ $ref: "#/components/schemas/GuideWhere"
36687
+ language:
36688
+ type: string
36689
+ screen:
36690
+ $ref: "#/components/schemas/ScreenContent"
36691
+ required:
36692
+ - surface
36693
+ GuideSurface:
36694
+ type: string
36695
+ enum:
36696
+ - portal
36697
+ - hub
34882
36698
  AppConfigOptions:
34883
36699
  type: object
34884
36700
  properties: