@seamapi/types 1.593.0 → 1.595.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.
package/dist/connect.cjs CHANGED
@@ -31946,6 +31946,85 @@ var openapi_default = {
31946
31946
  "x-title": "List Access Grants"
31947
31947
  }
31948
31948
  },
31949
+ "/access_grants/request_access_methods": {
31950
+ post: {
31951
+ description: "Adds additional requested access methods to an existing Access Grant.",
31952
+ operationId: "accessGrantsRequestAccessMethodsPost",
31953
+ requestBody: {
31954
+ content: {
31955
+ "application/json": {
31956
+ schema: {
31957
+ properties: {
31958
+ access_grant_id: {
31959
+ description: "ID of the Access Grant to add access methods to.",
31960
+ format: "uuid",
31961
+ type: "string"
31962
+ },
31963
+ requested_access_methods: {
31964
+ description: "Array of requested access methods to add to the access grant.",
31965
+ items: {
31966
+ properties: {
31967
+ code: {
31968
+ description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
31969
+ maxLength: 9,
31970
+ minLength: 4,
31971
+ pattern: "^\\d+$",
31972
+ type: "string"
31973
+ },
31974
+ mode: {
31975
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
31976
+ enum: ["code", "card", "mobile_key"],
31977
+ type: "string"
31978
+ }
31979
+ },
31980
+ required: ["mode"],
31981
+ type: "object"
31982
+ },
31983
+ minItems: 1,
31984
+ type: "array"
31985
+ }
31986
+ },
31987
+ required: ["access_grant_id", "requested_access_methods"],
31988
+ type: "object"
31989
+ }
31990
+ }
31991
+ }
31992
+ },
31993
+ responses: {
31994
+ 200: {
31995
+ content: {
31996
+ "application/json": {
31997
+ schema: {
31998
+ properties: {
31999
+ access_grant: { $ref: "#/components/schemas/access_grant" },
32000
+ ok: { type: "boolean" }
32001
+ },
32002
+ required: ["access_grant", "ok"],
32003
+ type: "object"
32004
+ }
32005
+ }
32006
+ },
32007
+ description: "OK"
32008
+ },
32009
+ 400: { description: "Bad Request" },
32010
+ 401: { description: "Unauthorized" }
32011
+ },
32012
+ security: [
32013
+ { pat_with_workspace: [] },
32014
+ { console_session_with_workspace: [] },
32015
+ { api_key: [] },
32016
+ { client_session_with_customer: [] }
32017
+ ],
32018
+ summary: "/access_grants/request_access_methods",
32019
+ tags: [],
32020
+ "x-draft": "Early access.",
32021
+ "x-fern-sdk-group-name": ["access_grants"],
32022
+ "x-fern-sdk-method-name": "request_access_methods",
32023
+ "x-fern-sdk-return-value": "access_grant",
32024
+ "x-response-key": "access_grant",
32025
+ "x-title": "Add Requested Access Methods to Access Grant"
32026
+ }
32027
+ },
31949
32028
  "/access_grants/unmanaged/get": {
31950
32029
  get: {
31951
32030
  description: "Get an unmanaged Access Grant (where is_managed = false).",
@@ -32804,6 +32883,126 @@ var openapi_default = {
32804
32883
  "x-title": "List Unmanaged Access Grants"
32805
32884
  }
32806
32885
  },
32886
+ "/access_grants/unmanaged/update": {
32887
+ patch: {
32888
+ description: "Updates an unmanaged Access Grant to make it managed.\n\nThis endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged.\n\nWhen converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.",
32889
+ operationId: "accessGrantsUnmanagedUpdatePatch",
32890
+ requestBody: {
32891
+ content: {
32892
+ "application/json": {
32893
+ schema: {
32894
+ properties: {
32895
+ access_grant_id: {
32896
+ description: "ID of the unmanaged Access Grant to update.",
32897
+ format: "uuid",
32898
+ type: "string"
32899
+ },
32900
+ access_grant_key: {
32901
+ description: "Unique key for the access grant. If not provided, the existing key will be preserved.",
32902
+ type: "string"
32903
+ },
32904
+ is_managed: {
32905
+ description: "Must be set to true to convert the unmanaged access grant to managed.",
32906
+ enum: [true],
32907
+ type: "boolean"
32908
+ }
32909
+ },
32910
+ required: ["access_grant_id", "is_managed"],
32911
+ type: "object"
32912
+ }
32913
+ }
32914
+ }
32915
+ },
32916
+ responses: {
32917
+ 200: {
32918
+ content: {
32919
+ "application/json": {
32920
+ schema: {
32921
+ properties: { ok: { type: "boolean" } },
32922
+ required: ["ok"],
32923
+ type: "object"
32924
+ }
32925
+ }
32926
+ },
32927
+ description: "OK"
32928
+ },
32929
+ 400: { description: "Bad Request" },
32930
+ 401: { description: "Unauthorized" }
32931
+ },
32932
+ security: [
32933
+ { pat_with_workspace: [] },
32934
+ { console_session_with_workspace: [] },
32935
+ { api_key: [] },
32936
+ { client_session_with_customer: [] }
32937
+ ],
32938
+ summary: "/access_grants/unmanaged/update",
32939
+ tags: [],
32940
+ "x-draft": "Early access.",
32941
+ "x-fern-sdk-group-name": ["access_grants", "unmanaged"],
32942
+ "x-fern-sdk-method-name": "update",
32943
+ "x-response-key": null,
32944
+ "x-title": "Update an Unmanaged Access Grant"
32945
+ },
32946
+ post: {
32947
+ description: "Updates an unmanaged Access Grant to make it managed.\n\nThis endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged.\n\nWhen converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.",
32948
+ operationId: "accessGrantsUnmanagedUpdatePost",
32949
+ requestBody: {
32950
+ content: {
32951
+ "application/json": {
32952
+ schema: {
32953
+ properties: {
32954
+ access_grant_id: {
32955
+ description: "ID of the unmanaged Access Grant to update.",
32956
+ format: "uuid",
32957
+ type: "string"
32958
+ },
32959
+ access_grant_key: {
32960
+ description: "Unique key for the access grant. If not provided, the existing key will be preserved.",
32961
+ type: "string"
32962
+ },
32963
+ is_managed: {
32964
+ description: "Must be set to true to convert the unmanaged access grant to managed.",
32965
+ enum: [true],
32966
+ type: "boolean"
32967
+ }
32968
+ },
32969
+ required: ["access_grant_id", "is_managed"],
32970
+ type: "object"
32971
+ }
32972
+ }
32973
+ }
32974
+ },
32975
+ responses: {
32976
+ 200: {
32977
+ content: {
32978
+ "application/json": {
32979
+ schema: {
32980
+ properties: { ok: { type: "boolean" } },
32981
+ required: ["ok"],
32982
+ type: "object"
32983
+ }
32984
+ }
32985
+ },
32986
+ description: "OK"
32987
+ },
32988
+ 400: { description: "Bad Request" },
32989
+ 401: { description: "Unauthorized" }
32990
+ },
32991
+ security: [
32992
+ { pat_with_workspace: [] },
32993
+ { console_session_with_workspace: [] },
32994
+ { api_key: [] },
32995
+ { client_session_with_customer: [] }
32996
+ ],
32997
+ summary: "/access_grants/unmanaged/update",
32998
+ tags: [],
32999
+ "x-draft": "Early access.",
33000
+ "x-fern-sdk-group-name": ["access_grants", "unmanaged"],
33001
+ "x-fern-sdk-method-name": "update",
33002
+ "x-response-key": null,
33003
+ "x-title": "Update an Unmanaged Access Grant"
33004
+ }
33005
+ },
32807
33006
  "/access_grants/update": {
32808
33007
  patch: {
32809
33008
  description: "Updates an existing Access Grant's time window.",
@@ -62511,6 +62710,124 @@ var openapi_default = {
62511
62710
  "x-title": "List Unmanaged User Identities"
62512
62711
  }
62513
62712
  },
62713
+ "/user_identities/unmanaged/update": {
62714
+ patch: {
62715
+ description: "Updates an unmanaged [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) to make it managed.\n\nThis endpoint can only be used to convert unmanaged user identities to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed user identities back to unmanaged.",
62716
+ operationId: "userIdentitiesUnmanagedUpdatePatch",
62717
+ requestBody: {
62718
+ content: {
62719
+ "application/json": {
62720
+ schema: {
62721
+ properties: {
62722
+ is_managed: {
62723
+ description: "Must be set to true to convert the unmanaged user identity to managed.",
62724
+ enum: [true],
62725
+ type: "boolean"
62726
+ },
62727
+ user_identity_id: {
62728
+ description: "ID of the unmanaged user identity that you want to update.",
62729
+ format: "uuid",
62730
+ type: "string"
62731
+ },
62732
+ user_identity_key: {
62733
+ description: "Unique key for the user identity. If not provided, the existing key will be preserved.",
62734
+ type: "string"
62735
+ }
62736
+ },
62737
+ required: ["user_identity_id", "is_managed"],
62738
+ type: "object"
62739
+ }
62740
+ }
62741
+ }
62742
+ },
62743
+ responses: {
62744
+ 200: {
62745
+ content: {
62746
+ "application/json": {
62747
+ schema: {
62748
+ properties: { ok: { type: "boolean" } },
62749
+ required: ["ok"],
62750
+ type: "object"
62751
+ }
62752
+ }
62753
+ },
62754
+ description: "OK"
62755
+ },
62756
+ 400: { description: "Bad Request" },
62757
+ 401: { description: "Unauthorized" }
62758
+ },
62759
+ security: [
62760
+ { api_key: [] },
62761
+ { client_session: [] },
62762
+ { pat_with_workspace: [] },
62763
+ { console_session_with_workspace: [] }
62764
+ ],
62765
+ summary: "/user_identities/unmanaged/update",
62766
+ tags: ["/user_identities"],
62767
+ "x-fern-sdk-group-name": ["user_identities", "unmanaged"],
62768
+ "x-fern-sdk-method-name": "update",
62769
+ "x-response-key": null,
62770
+ "x-title": "Update an Unmanaged User Identity"
62771
+ },
62772
+ post: {
62773
+ description: "Updates an unmanaged [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) to make it managed.\n\nThis endpoint can only be used to convert unmanaged user identities to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed user identities back to unmanaged.",
62774
+ operationId: "userIdentitiesUnmanagedUpdatePost",
62775
+ requestBody: {
62776
+ content: {
62777
+ "application/json": {
62778
+ schema: {
62779
+ properties: {
62780
+ is_managed: {
62781
+ description: "Must be set to true to convert the unmanaged user identity to managed.",
62782
+ enum: [true],
62783
+ type: "boolean"
62784
+ },
62785
+ user_identity_id: {
62786
+ description: "ID of the unmanaged user identity that you want to update.",
62787
+ format: "uuid",
62788
+ type: "string"
62789
+ },
62790
+ user_identity_key: {
62791
+ description: "Unique key for the user identity. If not provided, the existing key will be preserved.",
62792
+ type: "string"
62793
+ }
62794
+ },
62795
+ required: ["user_identity_id", "is_managed"],
62796
+ type: "object"
62797
+ }
62798
+ }
62799
+ }
62800
+ },
62801
+ responses: {
62802
+ 200: {
62803
+ content: {
62804
+ "application/json": {
62805
+ schema: {
62806
+ properties: { ok: { type: "boolean" } },
62807
+ required: ["ok"],
62808
+ type: "object"
62809
+ }
62810
+ }
62811
+ },
62812
+ description: "OK"
62813
+ },
62814
+ 400: { description: "Bad Request" },
62815
+ 401: { description: "Unauthorized" }
62816
+ },
62817
+ security: [
62818
+ { api_key: [] },
62819
+ { client_session: [] },
62820
+ { pat_with_workspace: [] },
62821
+ { console_session_with_workspace: [] }
62822
+ ],
62823
+ summary: "/user_identities/unmanaged/update",
62824
+ tags: ["/user_identities"],
62825
+ "x-fern-sdk-group-name": ["user_identities", "unmanaged"],
62826
+ "x-fern-sdk-method-name": "update",
62827
+ "x-response-key": null,
62828
+ "x-title": "Update an Unmanaged User Identity"
62829
+ }
62830
+ },
62514
62831
  "/user_identities/update": {
62515
62832
  patch: {
62516
62833
  description: "Updates a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).",