@breign/client 1.0.110 → 1.0.112

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 (33) hide show
  1. package/dist/apis/SkillsApi.d.ts +46 -1
  2. package/dist/apis/SkillsApi.js +109 -0
  3. package/dist/models/AppCreateRequestEphemeralInstancesUio.d.ts +38 -0
  4. package/dist/models/AppCreateRequestEphemeralInstancesUio.js +50 -0
  5. package/dist/models/AppCreateRequestUio.d.ts +7 -0
  6. package/dist/models/AppCreateRequestUio.js +3 -0
  7. package/dist/models/AppUio.d.ts +3 -3
  8. package/dist/models/AppUio.js +3 -3
  9. package/dist/models/AppUpdateRequestUio.d.ts +7 -0
  10. package/dist/models/AppUpdateRequestUio.js +3 -0
  11. package/dist/models/LibrarySkillEntryUio.d.ts +87 -0
  12. package/dist/models/LibrarySkillEntryUio.js +83 -0
  13. package/dist/models/LibrarySkillInstallRequestUio.d.ts +38 -0
  14. package/dist/models/LibrarySkillInstallRequestUio.js +52 -0
  15. package/dist/models/LibrarySkillSyncRequestUio.d.ts +32 -0
  16. package/dist/models/LibrarySkillSyncRequestUio.js +48 -0
  17. package/dist/models/LibrarySkillVersionFilesInnerUio.d.ts +38 -0
  18. package/dist/models/LibrarySkillVersionFilesInnerUio.js +54 -0
  19. package/dist/models/LibrarySkillVersionUio.d.ts +105 -0
  20. package/dist/models/LibrarySkillVersionUio.js +89 -0
  21. package/dist/models/LibrarySkillsPageUio.d.ts +63 -0
  22. package/dist/models/LibrarySkillsPageUio.js +71 -0
  23. package/dist/models/SkillAssignRequestUio.js +2 -2
  24. package/dist/models/SkillUio.d.ts +12 -0
  25. package/dist/models/SkillUio.js +4 -0
  26. package/dist/models/SkillUpdateRequestUio.d.ts +12 -0
  27. package/dist/models/SkillUpdateRequestUio.js +4 -0
  28. package/dist/models/index.d.ts +7 -1
  29. package/dist/models/index.js +7 -1
  30. package/dist/openapi.json +384 -17
  31. package/package.json +1 -1
  32. package/dist/models/AppEphemeralInstancesUio.d.ts +0 -38
  33. package/dist/models/AppEphemeralInstancesUio.js +0 -50
@@ -67,8 +67,8 @@ __exportStar(require("./AppConfigurationTextIntroIOSViewUio"), exports);
67
67
  __exportStar(require("./AppConfigurationTextSpeakIOSViewUio"), exports);
68
68
  __exportStar(require("./AppConfigurationTextUio"), exports);
69
69
  __exportStar(require("./AppConfigurationUio"), exports);
70
+ __exportStar(require("./AppCreateRequestEphemeralInstancesUio"), exports);
70
71
  __exportStar(require("./AppCreateRequestUio"), exports);
71
- __exportStar(require("./AppEphemeralInstancesUio"), exports);
72
72
  __exportStar(require("./AppFlowCreateRequestUio"), exports);
73
73
  __exportStar(require("./AppInstanceCreateRequestOneOfUio"), exports);
74
74
  __exportStar(require("./AppInstanceCreateRequestUio"), exports);
@@ -211,6 +211,12 @@ __exportStar(require("./KnowledgeFileSummaryKnowledgeBaseIdUio"), exports);
211
211
  __exportStar(require("./KnowledgeFileSummaryUio"), exports);
212
212
  __exportStar(require("./KnowledgeFilesByIdsRequestUio"), exports);
213
213
  __exportStar(require("./KnowledgeSitePageUio"), exports);
214
+ __exportStar(require("./LibrarySkillEntryUio"), exports);
215
+ __exportStar(require("./LibrarySkillInstallRequestUio"), exports);
216
+ __exportStar(require("./LibrarySkillSyncRequestUio"), exports);
217
+ __exportStar(require("./LibrarySkillVersionFilesInnerUio"), exports);
218
+ __exportStar(require("./LibrarySkillVersionUio"), exports);
219
+ __exportStar(require("./LibrarySkillsPageUio"), exports);
214
220
  __exportStar(require("./LipsyncUio"), exports);
215
221
  __exportStar(require("./ManifestCreateRequestUio"), exports);
216
222
  __exportStar(require("./ManifestUio"), exports);
package/dist/openapi.json CHANGED
@@ -9247,7 +9247,7 @@
9247
9247
  }
9248
9248
  }
9249
9249
  },
9250
- "description" : "List of skills",
9250
+ "description" : "Paginated list of skills",
9251
9251
  "headers" : {
9252
9252
  "X-Total-Count" : {
9253
9253
  "description" : "Total number of skills in the organization",
@@ -9256,16 +9256,19 @@
9256
9256
  }
9257
9257
  },
9258
9258
  "X-Page" : {
9259
+ "description" : "Current page number",
9259
9260
  "schema" : {
9260
9261
  "type" : "integer"
9261
9262
  }
9262
9263
  },
9263
9264
  "X-Limit" : {
9265
+ "description" : "Maximum number of items per page",
9264
9266
  "schema" : {
9265
9267
  "type" : "integer"
9266
9268
  }
9267
9269
  },
9268
9270
  "X-Total-Pages" : {
9271
+ "description" : "Total number of pages",
9269
9272
  "schema" : {
9270
9273
  "type" : "integer"
9271
9274
  }
@@ -9739,7 +9742,7 @@
9739
9742
  "required" : true
9740
9743
  },
9741
9744
  "responses" : {
9742
- "200" : {
9745
+ "204" : {
9743
9746
  "description" : "Skill assigned (or already assigned — idempotent)"
9744
9747
  },
9745
9748
  "400" : {
@@ -9840,6 +9843,178 @@
9840
9843
  "tags" : [ "skills" ]
9841
9844
  }
9842
9845
  },
9846
+ "/library-skills" : {
9847
+ "get" : {
9848
+ "description" : "Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.",
9849
+ "operationId" : "listLibrarySkills",
9850
+ "parameters" : [ {
9851
+ "description" : "Organization ID",
9852
+ "in" : "query",
9853
+ "name" : "organizationId",
9854
+ "required" : true,
9855
+ "schema" : {
9856
+ "type" : "string"
9857
+ }
9858
+ }, {
9859
+ "description" : "Page number",
9860
+ "in" : "query",
9861
+ "name" : "page",
9862
+ "schema" : {
9863
+ "type" : "integer"
9864
+ }
9865
+ }, {
9866
+ "description" : "Maximum number of library skills to return",
9867
+ "in" : "query",
9868
+ "name" : "limit",
9869
+ "schema" : {
9870
+ "default" : 20,
9871
+ "maximum" : 100,
9872
+ "type" : "integer"
9873
+ }
9874
+ }, {
9875
+ "description" : "Search library skills by name or description",
9876
+ "in" : "query",
9877
+ "name" : "search",
9878
+ "schema" : {
9879
+ "type" : "string"
9880
+ }
9881
+ }, {
9882
+ "description" : "Filter library skills by category",
9883
+ "in" : "query",
9884
+ "name" : "category",
9885
+ "schema" : {
9886
+ "type" : "string"
9887
+ }
9888
+ } ],
9889
+ "responses" : {
9890
+ "200" : {
9891
+ "content" : {
9892
+ "application/json" : {
9893
+ "schema" : {
9894
+ "$ref" : "#/components/schemas/LibrarySkillsPage"
9895
+ }
9896
+ }
9897
+ },
9898
+ "description" : "Paginated list of library skills"
9899
+ },
9900
+ "400" : {
9901
+ "description" : "MISSING_ORG_ID"
9902
+ },
9903
+ "401" : {
9904
+ "description" : "Unauthorized"
9905
+ },
9906
+ "403" : {
9907
+ "description" : "Forbidden"
9908
+ }
9909
+ },
9910
+ "summary" : "List all library skills",
9911
+ "tags" : [ "skills" ]
9912
+ }
9913
+ },
9914
+ "/library-skills/{slug}/install" : {
9915
+ "post" : {
9916
+ "description" : "Creates a new skill in the organization from the specified library skill version (defaults to latest)",
9917
+ "operationId" : "installLibrarySkill",
9918
+ "parameters" : [ {
9919
+ "in" : "path",
9920
+ "name" : "slug",
9921
+ "required" : true,
9922
+ "schema" : {
9923
+ "type" : "string"
9924
+ }
9925
+ } ],
9926
+ "requestBody" : {
9927
+ "content" : {
9928
+ "application/json" : {
9929
+ "schema" : {
9930
+ "$ref" : "#/components/schemas/LibrarySkillInstallRequest"
9931
+ }
9932
+ }
9933
+ },
9934
+ "required" : true
9935
+ },
9936
+ "responses" : {
9937
+ "201" : {
9938
+ "content" : {
9939
+ "application/json" : {
9940
+ "schema" : {
9941
+ "$ref" : "#/components/schemas/Skill"
9942
+ }
9943
+ }
9944
+ },
9945
+ "description" : "Skill installed successfully"
9946
+ },
9947
+ "400" : {
9948
+ "description" : "Invalid request body"
9949
+ },
9950
+ "401" : {
9951
+ "description" : "Unauthorized"
9952
+ },
9953
+ "403" : {
9954
+ "description" : "Forbidden"
9955
+ },
9956
+ "404" : {
9957
+ "description" : "LIBRARY_SKILL_NOT_FOUND"
9958
+ },
9959
+ "409" : {
9960
+ "description" : "SKILL_SLUG_ALREADY_EXISTS"
9961
+ }
9962
+ },
9963
+ "summary" : "Install a library skill into an organization",
9964
+ "tags" : [ "skills" ]
9965
+ }
9966
+ },
9967
+ "/skills/{skillId}/sync-library" : {
9968
+ "post" : {
9969
+ "description" : "Updates the skill content from the specified library version (defaults to latest)",
9970
+ "operationId" : "syncSkillToLibrary",
9971
+ "parameters" : [ {
9972
+ "in" : "path",
9973
+ "name" : "skillId",
9974
+ "required" : true,
9975
+ "schema" : {
9976
+ "format" : "uuid",
9977
+ "type" : "string"
9978
+ }
9979
+ } ],
9980
+ "requestBody" : {
9981
+ "content" : {
9982
+ "application/json" : {
9983
+ "schema" : {
9984
+ "$ref" : "#/components/schemas/LibrarySkillSyncRequest"
9985
+ }
9986
+ }
9987
+ },
9988
+ "required" : false
9989
+ },
9990
+ "responses" : {
9991
+ "200" : {
9992
+ "content" : {
9993
+ "application/json" : {
9994
+ "schema" : {
9995
+ "$ref" : "#/components/schemas/Skill"
9996
+ }
9997
+ }
9998
+ },
9999
+ "description" : "Skill synced successfully"
10000
+ },
10001
+ "400" : {
10002
+ "description" : "Invalid request or SKILL_NOT_FROM_LIBRARY"
10003
+ },
10004
+ "401" : {
10005
+ "description" : "Unauthorized"
10006
+ },
10007
+ "403" : {
10008
+ "description" : "Forbidden"
10009
+ },
10010
+ "404" : {
10011
+ "description" : "SKILL_NOT_FOUND or LIBRARY_VERSION_NOT_FOUND"
10012
+ }
10013
+ },
10014
+ "summary" : "Sync an installed skill to a library version",
10015
+ "tags" : [ "skills" ]
10016
+ }
10017
+ },
9843
10018
  "/remote/pin-requests" : {
9844
10019
  "post" : {
9845
10020
  "description" : "Creates a PIN request for remote access",
@@ -13053,6 +13228,9 @@
13053
13228
  "additionalProperties" : false,
13054
13229
  "maxProperties" : 100,
13055
13230
  "type" : "object"
13231
+ },
13232
+ "ephemeralInstances" : {
13233
+ "$ref" : "#/components/schemas/AppCreateRequest_ephemeralInstances"
13056
13234
  }
13057
13235
  },
13058
13236
  "required" : [ "agentId", "name", "streamingEnabled" ],
@@ -13182,7 +13360,7 @@
13182
13360
  "type" : "object"
13183
13361
  },
13184
13362
  "ephemeralInstances" : {
13185
- "$ref" : "#/components/schemas/App_ephemeralInstances"
13363
+ "$ref" : "#/components/schemas/AppCreateRequest_ephemeralInstances"
13186
13364
  },
13187
13365
  "fillers" : {
13188
13366
  "additionalProperties" : false,
@@ -13364,6 +13542,9 @@
13364
13542
  "additionalProperties" : true,
13365
13543
  "maxProperties" : 100,
13366
13544
  "type" : "object"
13545
+ },
13546
+ "ephemeralInstances" : {
13547
+ "$ref" : "#/components/schemas/AppCreateRequest_ephemeralInstances"
13367
13548
  }
13368
13549
  },
13369
13550
  "type" : "object"
@@ -15473,6 +15654,15 @@
15473
15654
  "updatedAt" : {
15474
15655
  "format" : "date-time",
15475
15656
  "type" : "string"
15657
+ },
15658
+ "librarySlug" : {
15659
+ "nullable" : true,
15660
+ "type" : "string"
15661
+ },
15662
+ "libraryVersionId" : {
15663
+ "format" : "uuid",
15664
+ "nullable" : true,
15665
+ "type" : "string"
15476
15666
  }
15477
15667
  },
15478
15668
  "required" : [ "content", "description", "id", "isActive", "name", "orgId", "slug" ],
@@ -15529,6 +15719,15 @@
15529
15719
  },
15530
15720
  "isActive" : {
15531
15721
  "type" : "boolean"
15722
+ },
15723
+ "librarySlug" : {
15724
+ "nullable" : true,
15725
+ "type" : "string"
15726
+ },
15727
+ "libraryVersionId" : {
15728
+ "format" : "uuid",
15729
+ "nullable" : true,
15730
+ "type" : "string"
15532
15731
  }
15533
15732
  },
15534
15733
  "type" : "object"
@@ -15633,12 +15832,12 @@
15633
15832
  "SkillAssignRequest" : {
15634
15833
  "additionalProperties" : false,
15635
15834
  "properties" : {
15636
- "skill_id" : {
15835
+ "skillId" : {
15637
15836
  "format" : "uuid",
15638
15837
  "type" : "string"
15639
15838
  }
15640
15839
  },
15641
- "required" : [ "skill_id" ],
15840
+ "required" : [ "skillId" ],
15642
15841
  "type" : "object"
15643
15842
  },
15644
15843
  "AvailableCommand" : {
@@ -15657,6 +15856,162 @@
15657
15856
  "required" : [ "description", "slug", "source" ],
15658
15857
  "type" : "object"
15659
15858
  },
15859
+ "LibrarySkillsPage" : {
15860
+ "properties" : {
15861
+ "data" : {
15862
+ "items" : {
15863
+ "$ref" : "#/components/schemas/LibrarySkillEntry"
15864
+ },
15865
+ "type" : "array"
15866
+ },
15867
+ "total" : {
15868
+ "type" : "integer"
15869
+ },
15870
+ "page" : {
15871
+ "type" : "integer"
15872
+ },
15873
+ "limit" : {
15874
+ "type" : "integer"
15875
+ },
15876
+ "totalPages" : {
15877
+ "type" : "integer"
15878
+ },
15879
+ "allCategories" : {
15880
+ "items" : {
15881
+ "type" : "string"
15882
+ },
15883
+ "type" : "array"
15884
+ }
15885
+ },
15886
+ "required" : [ "allCategories", "data", "limit", "page", "total", "totalPages" ],
15887
+ "type" : "object"
15888
+ },
15889
+ "LibrarySkillEntry" : {
15890
+ "properties" : {
15891
+ "id" : {
15892
+ "type" : "string"
15893
+ },
15894
+ "slug" : {
15895
+ "type" : "string"
15896
+ },
15897
+ "name" : {
15898
+ "type" : "string"
15899
+ },
15900
+ "description" : {
15901
+ "type" : "string"
15902
+ },
15903
+ "sourceSkillId" : {
15904
+ "format" : "uuid",
15905
+ "nullable" : true,
15906
+ "type" : "string"
15907
+ },
15908
+ "latestVersionId" : {
15909
+ "format" : "uuid",
15910
+ "nullable" : true,
15911
+ "type" : "string"
15912
+ },
15913
+ "createdAt" : {
15914
+ "format" : "date-time",
15915
+ "type" : "string"
15916
+ },
15917
+ "updatedAt" : {
15918
+ "format" : "date-time",
15919
+ "type" : "string"
15920
+ },
15921
+ "versions" : {
15922
+ "items" : {
15923
+ "$ref" : "#/components/schemas/LibrarySkillVersion"
15924
+ },
15925
+ "type" : "array"
15926
+ },
15927
+ "latestVersion" : {
15928
+ "$ref" : "#/components/schemas/LibrarySkillVersion"
15929
+ }
15930
+ },
15931
+ "required" : [ "createdAt", "description", "id", "latestVersionId", "name", "slug", "updatedAt", "versions" ],
15932
+ "type" : "object"
15933
+ },
15934
+ "LibrarySkillVersion" : {
15935
+ "properties" : {
15936
+ "id" : {
15937
+ "format" : "uuid",
15938
+ "type" : "string"
15939
+ },
15940
+ "slug" : {
15941
+ "type" : "string"
15942
+ },
15943
+ "version" : {
15944
+ "type" : "string"
15945
+ },
15946
+ "name" : {
15947
+ "type" : "string"
15948
+ },
15949
+ "description" : {
15950
+ "type" : "string"
15951
+ },
15952
+ "content" : {
15953
+ "type" : "string"
15954
+ },
15955
+ "isLatest" : {
15956
+ "type" : "boolean"
15957
+ },
15958
+ "sourceSkillId" : {
15959
+ "format" : "uuid",
15960
+ "nullable" : true,
15961
+ "type" : "string"
15962
+ },
15963
+ "publishedAt" : {
15964
+ "format" : "date-time",
15965
+ "type" : "string"
15966
+ },
15967
+ "publishedBy" : {
15968
+ "format" : "uuid",
15969
+ "nullable" : true,
15970
+ "type" : "string"
15971
+ },
15972
+ "publishedByName" : {
15973
+ "nullable" : true,
15974
+ "type" : "string"
15975
+ },
15976
+ "category" : {
15977
+ "nullable" : true,
15978
+ "type" : "string"
15979
+ },
15980
+ "files" : {
15981
+ "items" : {
15982
+ "$ref" : "#/components/schemas/LibrarySkillVersion_files_inner"
15983
+ },
15984
+ "type" : "array"
15985
+ }
15986
+ },
15987
+ "required" : [ "content", "description", "id", "isLatest", "name", "publishedAt", "slug", "version" ],
15988
+ "type" : "object"
15989
+ },
15990
+ "LibrarySkillInstallRequest" : {
15991
+ "additionalProperties" : false,
15992
+ "properties" : {
15993
+ "organizationId" : {
15994
+ "format" : "uuid",
15995
+ "type" : "string"
15996
+ },
15997
+ "versionId" : {
15998
+ "format" : "uuid",
15999
+ "type" : "string"
16000
+ }
16001
+ },
16002
+ "required" : [ "organizationId" ],
16003
+ "type" : "object"
16004
+ },
16005
+ "LibrarySkillSyncRequest" : {
16006
+ "additionalProperties" : false,
16007
+ "properties" : {
16008
+ "versionId" : {
16009
+ "format" : "uuid",
16010
+ "type" : "string"
16011
+ }
16012
+ },
16013
+ "type" : "object"
16014
+ },
15660
16015
  "PinRequest" : {
15661
16016
  "properties" : {
15662
16017
  "user" : {
@@ -16808,6 +17163,18 @@
16808
17163
  "required" : [ "date", "type" ],
16809
17164
  "type" : "object"
16810
17165
  },
17166
+ "AppCreateRequest_ephemeralInstances" : {
17167
+ "additionalProperties" : false,
17168
+ "properties" : {
17169
+ "allowed" : {
17170
+ "type" : "boolean"
17171
+ },
17172
+ "maxInstances" : {
17173
+ "type" : "number"
17174
+ }
17175
+ },
17176
+ "type" : "object"
17177
+ },
16811
17178
  "App_commands_inner" : {
16812
17179
  "properties" : {
16813
17180
  "name" : {
@@ -16831,18 +17198,6 @@
16831
17198
  "$ref" : "#/components/schemas/EphemeralInstance"
16832
17199
  } ]
16833
17200
  },
16834
- "App_ephemeralInstances" : {
16835
- "additionalProperties" : false,
16836
- "properties" : {
16837
- "allowed" : {
16838
- "type" : "boolean"
16839
- },
16840
- "maxInstances" : {
16841
- "type" : "number"
16842
- }
16843
- },
16844
- "type" : "object"
16845
- },
16846
17201
  "Sequence_contents" : {
16847
17202
  "properties" : {
16848
17203
  "text" : {
@@ -17378,6 +17733,18 @@
17378
17733
  },
17379
17734
  "type" : "object"
17380
17735
  },
17736
+ "LibrarySkillVersion_files_inner" : {
17737
+ "properties" : {
17738
+ "filename" : {
17739
+ "type" : "string"
17740
+ },
17741
+ "content" : {
17742
+ "type" : "string"
17743
+ }
17744
+ },
17745
+ "required" : [ "content", "filename" ],
17746
+ "type" : "object"
17747
+ },
17381
17748
  "MessageStatus_error" : {
17382
17749
  "properties" : {
17383
17750
  "code" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -1,38 +0,0 @@
1
- /**
2
- * brain-client
3
- * Api ands models for brain-app and brain-app
4
- *
5
- * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface AppEphemeralInstancesUio
16
- */
17
- export interface AppEphemeralInstancesUio {
18
- /**
19
- *
20
- * @type {boolean}
21
- * @memberof AppEphemeralInstancesUio
22
- */
23
- allowed?: boolean;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof AppEphemeralInstancesUio
28
- */
29
- maxInstances?: number;
30
- }
31
- /**
32
- * Check if a given object implements the AppEphemeralInstancesUio interface.
33
- */
34
- export declare function instanceOfAppEphemeralInstancesUio(value: object): value is AppEphemeralInstancesUio;
35
- export declare function AppEphemeralInstancesUioFromJSON(json: any): AppEphemeralInstancesUio;
36
- export declare function AppEphemeralInstancesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppEphemeralInstancesUio;
37
- export declare function AppEphemeralInstancesUioToJSON(json: any): AppEphemeralInstancesUio;
38
- export declare function AppEphemeralInstancesUioToJSONTyped(value?: AppEphemeralInstancesUio | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * brain-client
6
- * Api ands models for brain-app and brain-app
7
- *
8
- * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfAppEphemeralInstancesUio = instanceOfAppEphemeralInstancesUio;
17
- exports.AppEphemeralInstancesUioFromJSON = AppEphemeralInstancesUioFromJSON;
18
- exports.AppEphemeralInstancesUioFromJSONTyped = AppEphemeralInstancesUioFromJSONTyped;
19
- exports.AppEphemeralInstancesUioToJSON = AppEphemeralInstancesUioToJSON;
20
- exports.AppEphemeralInstancesUioToJSONTyped = AppEphemeralInstancesUioToJSONTyped;
21
- /**
22
- * Check if a given object implements the AppEphemeralInstancesUio interface.
23
- */
24
- function instanceOfAppEphemeralInstancesUio(value) {
25
- return true;
26
- }
27
- function AppEphemeralInstancesUioFromJSON(json) {
28
- return AppEphemeralInstancesUioFromJSONTyped(json, false);
29
- }
30
- function AppEphemeralInstancesUioFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'allowed': json['allowed'] == null ? undefined : json['allowed'],
36
- 'maxInstances': json['maxInstances'] == null ? undefined : json['maxInstances'],
37
- };
38
- }
39
- function AppEphemeralInstancesUioToJSON(json) {
40
- return AppEphemeralInstancesUioToJSONTyped(json, false);
41
- }
42
- function AppEphemeralInstancesUioToJSONTyped(value, ignoreDiscriminator = false) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'allowed': value['allowed'],
48
- 'maxInstances': value['maxInstances'],
49
- };
50
- }