@seamapi/http
Advanced tools
Comparing version 1.10.0 to 1.11.0
@@ -54,3 +54,3 @@ import type { ActionAttempt } from '@seamapi/types/connect'; | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -61,5 +61,105 @@ error: null; | ||
result: { | ||
card_number: string | null; | ||
acs_credential_on_encoder: { | ||
created_at: string | null; | ||
starts_at: string | null; | ||
ends_at: string | null; | ||
card_number: string | null; | ||
is_issued: boolean | null; | ||
visionline_metadata?: { | ||
expired: boolean; | ||
card_function_type: "guest" | "staff"; | ||
card_id: string; | ||
cancelled: boolean; | ||
discarded: boolean; | ||
overwritten: boolean; | ||
pending_auto_update: boolean; | ||
card_format: "TLCode" | "rfid48"; | ||
number_of_issued_cards: number; | ||
overridden?: boolean | undefined; | ||
card_holder?: string | undefined; | ||
} | undefined; | ||
}; | ||
acs_credential_on_seam: { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: true; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: false; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | null; | ||
}; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -73,3 +173,3 @@ error: { | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -85,6 +185,3 @@ error: null; | ||
action_attempt_id: string; | ||
result: { | ||
acs_credential_id: string | null; | ||
card_number: string | null; | ||
}; | ||
result: {}; | ||
action_type: "ENCODE_CARD"; | ||
@@ -257,4 +354,4 @@ } | { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "SYNC_ACCESS_CODES"; | ||
result?: any; | ||
} | { | ||
@@ -279,4 +376,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "CREATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -301,4 +400,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -323,4 +422,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "UPDATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -345,4 +446,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "CREATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -367,4 +470,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -389,4 +492,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "UPDATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -451,3 +556,3 @@ error: { | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -458,5 +563,105 @@ error: null; | ||
result: { | ||
card_number: string | null; | ||
acs_credential_on_encoder: { | ||
created_at: string | null; | ||
starts_at: string | null; | ||
ends_at: string | null; | ||
card_number: string | null; | ||
is_issued: boolean | null; | ||
visionline_metadata?: { | ||
expired: boolean; | ||
card_function_type: "guest" | "staff"; | ||
card_id: string; | ||
cancelled: boolean; | ||
discarded: boolean; | ||
overwritten: boolean; | ||
pending_auto_update: boolean; | ||
card_format: "TLCode" | "rfid48"; | ||
number_of_issued_cards: number; | ||
overridden?: boolean | undefined; | ||
card_holder?: string | undefined; | ||
} | undefined; | ||
}; | ||
acs_credential_on_seam: { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: true; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: false; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | null; | ||
}; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -470,3 +675,3 @@ error: { | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -482,6 +687,3 @@ error: null; | ||
action_attempt_id: string; | ||
result: { | ||
acs_credential_id: string | null; | ||
card_number: string | null; | ||
}; | ||
result: {}; | ||
action_type: "ENCODE_CARD"; | ||
@@ -654,4 +856,4 @@ } | { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "SYNC_ACCESS_CODES"; | ||
result?: any; | ||
} | { | ||
@@ -676,4 +878,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "CREATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -698,4 +902,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -720,4 +924,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "UPDATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -742,4 +948,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "CREATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -764,4 +972,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -786,4 +994,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "UPDATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -850,3 +1060,3 @@ error: { | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -857,5 +1067,105 @@ error: null; | ||
result: { | ||
card_number: string | null; | ||
acs_credential_on_encoder: { | ||
created_at: string | null; | ||
starts_at: string | null; | ||
ends_at: string | null; | ||
card_number: string | null; | ||
is_issued: boolean | null; | ||
visionline_metadata?: { | ||
expired: boolean; | ||
card_function_type: "guest" | "staff"; | ||
card_id: string; | ||
cancelled: boolean; | ||
discarded: boolean; | ||
overwritten: boolean; | ||
pending_auto_update: boolean; | ||
card_format: "TLCode" | "rfid48"; | ||
number_of_issued_cards: number; | ||
overridden?: boolean | undefined; | ||
card_holder?: string | undefined; | ||
} | undefined; | ||
}; | ||
acs_credential_on_seam: { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: true; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: false; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | null; | ||
}; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -869,3 +1179,3 @@ error: { | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -881,6 +1191,3 @@ error: null; | ||
action_attempt_id: string; | ||
result: { | ||
acs_credential_id: string | null; | ||
card_number: string | null; | ||
}; | ||
result: {}; | ||
action_type: "ENCODE_CARD"; | ||
@@ -1053,4 +1360,4 @@ } | { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "SYNC_ACCESS_CODES"; | ||
result?: any; | ||
} | { | ||
@@ -1075,4 +1382,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "CREATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -1097,4 +1406,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -1119,4 +1428,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "UPDATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -1141,4 +1452,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "CREATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -1163,4 +1476,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -1185,4 +1498,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "UPDATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -1249,3 +1564,3 @@ error: { | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -1256,5 +1571,105 @@ error: null; | ||
result: { | ||
card_number: string | null; | ||
acs_credential_on_encoder: { | ||
created_at: string | null; | ||
starts_at: string | null; | ||
ends_at: string | null; | ||
card_number: string | null; | ||
is_issued: boolean | null; | ||
visionline_metadata?: { | ||
expired: boolean; | ||
card_function_type: "guest" | "staff"; | ||
card_id: string; | ||
cancelled: boolean; | ||
discarded: boolean; | ||
overwritten: boolean; | ||
pending_auto_update: boolean; | ||
card_format: "TLCode" | "rfid48"; | ||
number_of_issued_cards: number; | ||
overridden?: boolean | undefined; | ||
card_holder?: string | undefined; | ||
} | undefined; | ||
}; | ||
acs_credential_on_seam: { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: true; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | { | ||
created_at: string; | ||
errors: { | ||
message: string; | ||
error_code: string; | ||
}[]; | ||
warnings: { | ||
message: string; | ||
warning_code: string; | ||
}[]; | ||
display_name: string; | ||
workspace_id: string; | ||
is_managed: false; | ||
acs_system_id: string; | ||
acs_credential_id: string; | ||
access_method: "code" | "card" | "mobile_key"; | ||
code?: string | null | undefined; | ||
starts_at?: string | undefined; | ||
ends_at?: string | undefined; | ||
visionline_metadata?: { | ||
card_function_type: "guest" | "staff"; | ||
joiner_acs_credential_ids?: string[] | undefined; | ||
guest_acs_entrance_ids?: string[] | undefined; | ||
common_acs_entrance_ids?: string[] | undefined; | ||
is_valid?: boolean | undefined; | ||
auto_join?: boolean | undefined; | ||
card_id?: string | undefined; | ||
credential_id?: string | undefined; | ||
} | undefined; | ||
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined; | ||
external_type_display_name?: string | undefined; | ||
acs_user_id?: string | undefined; | ||
acs_credential_pool_id?: string | undefined; | ||
parent_acs_credential_id?: string | undefined; | ||
card_number?: string | null | undefined; | ||
is_issued?: boolean | undefined; | ||
issued_at?: string | null | undefined; | ||
is_multi_phone_sync_credential?: boolean | undefined; | ||
is_latest_desired_state_synced_with_provider?: boolean | undefined; | ||
latest_desired_state_synced_with_provider_at?: string | undefined; | ||
} | null; | ||
}; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -1268,3 +1683,3 @@ error: { | ||
result: null; | ||
action_type: "READ_CARD"; | ||
action_type: "SCAN_CARD"; | ||
} | { | ||
@@ -1280,6 +1695,3 @@ error: null; | ||
action_attempt_id: string; | ||
result: { | ||
acs_credential_id: string | null; | ||
card_number: string | null; | ||
}; | ||
result: {}; | ||
action_type: "ENCODE_CARD"; | ||
@@ -1452,4 +1864,4 @@ } | { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "SYNC_ACCESS_CODES"; | ||
result?: any; | ||
} | { | ||
@@ -1474,4 +1886,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "CREATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -1496,4 +1910,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -1518,4 +1932,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
access_code?: any; | ||
}; | ||
action_type: "UPDATE_ACCESS_CODE"; | ||
result?: any; | ||
} | { | ||
@@ -1540,4 +1956,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "CREATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -1562,4 +1980,4 @@ error: { | ||
action_attempt_id: string; | ||
result: {}; | ||
action_type: "DELETE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -1584,4 +2002,6 @@ error: { | ||
action_attempt_id: string; | ||
result: { | ||
noise_threshold?: any; | ||
}; | ||
action_type: "UPDATE_NOISE_THRESHOLD"; | ||
result?: any; | ||
} | { | ||
@@ -1588,0 +2008,0 @@ error: { |
@@ -19,3 +19,3 @@ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'; | ||
list(body?: AcsEncodersListParams): SeamHttpRequest<AcsEncodersListResponse, 'devices'>; | ||
readCard(body?: AcsEncodersReadCardBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersReadCardResponse, 'action_attempt'>; | ||
scanCard(body?: AcsEncodersScanCardBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersScanCardResponse, 'action_attempt'>; | ||
} | ||
@@ -28,4 +28,4 @@ export type AcsEncodersEncodeCardBody = RouteRequestBody<'/acs/encoders/encode_card'>; | ||
export type AcsEncodersListOptions = never; | ||
export type AcsEncodersReadCardBody = RouteRequestBody<'/acs/encoders/read_card'>; | ||
export type AcsEncodersReadCardResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/read_card'>>>; | ||
export type AcsEncodersReadCardOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>; | ||
export type AcsEncodersScanCardBody = RouteRequestBody<'/acs/encoders/scan_card'>; | ||
export type AcsEncodersScanCardResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/scan_card'>>>; | ||
export type AcsEncodersScanCardOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>; |
@@ -96,5 +96,5 @@ /* | ||
} | ||
readCard(body, options = {}) { | ||
scanCard(body, options = {}) { | ||
return new SeamHttpRequest(this, { | ||
path: '/acs/encoders/read_card', | ||
path: '/acs/encoders/scan_card', | ||
method: 'post', | ||
@@ -101,0 +101,0 @@ body, |
@@ -1,2 +0,2 @@ | ||
declare const seamapiJavascriptHttpVersion = "1.10.0"; | ||
declare const seamapiJavascriptHttpVersion = "1.11.0"; | ||
export default seamapiJavascriptHttpVersion; |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '1.10.0'; | ||
const seamapiJavascriptHttpVersion = '1.11.0'; | ||
export default seamapiJavascriptHttpVersion; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@seamapi/http", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "JavaScript HTTP client for the Seam API written in TypeScript.", | ||
@@ -87,3 +87,3 @@ "type": "module", | ||
"peerDependencies": { | ||
"@seamapi/types": "^1.263.1" | ||
"@seamapi/types": "^1.264.2" | ||
}, | ||
@@ -103,3 +103,3 @@ "peerDependenciesMeta": { | ||
"@seamapi/fake-seam-connect": "1.71.0", | ||
"@seamapi/types": "1.263.1", | ||
"@seamapi/types": "1.264.2", | ||
"@types/eslint": "^8.44.2", | ||
@@ -106,0 +106,0 @@ "@types/node": "^20.8.10", |
@@ -181,8 +181,8 @@ /* | ||
readCard( | ||
body?: AcsEncodersReadCardBody, | ||
scanCard( | ||
body?: AcsEncodersScanCardBody, | ||
options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {}, | ||
): SeamHttpRequest<AcsEncodersReadCardResponse, 'action_attempt'> { | ||
): SeamHttpRequest<AcsEncodersScanCardResponse, 'action_attempt'> { | ||
return new SeamHttpRequest(this, { | ||
path: '/acs/encoders/read_card', | ||
path: '/acs/encoders/scan_card', | ||
method: 'post', | ||
@@ -216,12 +216,12 @@ body, | ||
export type AcsEncodersReadCardBody = | ||
RouteRequestBody<'/acs/encoders/read_card'> | ||
export type AcsEncodersScanCardBody = | ||
RouteRequestBody<'/acs/encoders/scan_card'> | ||
export type AcsEncodersReadCardResponse = SetNonNullable< | ||
Required<RouteResponse<'/acs/encoders/read_card'>> | ||
export type AcsEncodersScanCardResponse = SetNonNullable< | ||
Required<RouteResponse<'/acs/encoders/scan_card'>> | ||
> | ||
export type AcsEncodersReadCardOptions = Pick< | ||
export type AcsEncodersScanCardOptions = Pick< | ||
SeamHttpRequestOptions, | ||
'waitForActionAttempt' | ||
> |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '1.10.0' | ||
const seamapiJavascriptHttpVersion = '1.11.0' | ||
export default seamapiJavascriptHttpVersion |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1859706
22635